Case Status
Log In


Whole Tomato Software - Home
  • RSS Feed

Turn off accept-with-any-character in Visual Basic and C#

Visual Studio 2003 and newer (for Visual Basic)
Visual Studio 2015 and newer (for C#)

If you have enabled Visual Assist for additional programming languages and type the following line in Visual Basic:

Dim variableOfNewType As act<Space>

the current item in the listbox, e.g. "Action", is accepted. The acceptance occurs even if you have disabled "listboxes are committed with any character not valid in a symbol" in the Visual Assist options dialog. This occurs because Visual Assist gives precedence to replicating the behavior of the IDE in Visual Basic and C# over the setting in the Visual Assist options dialog.

Using Visual Assist 1912 and newer, restrict characters that accept items in Visual Basic and C# by setting the registry key:

HKCU\Software\Whole Tomato\Visual Assist X\<IDE spec>\CompleteWithAnyVsOverride = 01

Return to 00 to restore the default behavior.