Insert () and Closing } ) ] and "

Select a method or function from a member listbox or suggestion list and parentheses are inserted automatically. Your caret is left between the parentheses if your method takes arguments; after if not. Save yourself a bit of typing.

insertParentheses.gif

When typing an opening ( { [ or ", a closing character is inserted automatically. Your caret is left between the characters. When typing a {, the } is placed per settings in the VA options dialog and indented per settings in the IDE options dialogs.

insertBraces.gif

Even fast typists exploit this feature. Simply overwrite the closing character with another prior to typing anything but straight text. If you move or type another opening character, the fact a closing character was inserted is forgotten. Delete one if you type another yourself.

insertOverwrite.gif

Revert an Insert

Press Undo to revert the insert of parentheses or a closing character. Press DEL or Backsapce to delete an inserted character.

insertDelete.gif

Miscellaneous

Adjust formatting and indentation of an inserted } using the IDE options dialogs.

insertIndent.png

With the exception of ), a closing character is not inserted if one already follows the caret.

Closing characters are not inserted inside comments and strings.

See Surround Selection to learn about a related feature.

A single option controls both inserting of ()s and of closing characters. There is no way to make the feature work for specific characters.

insertOption.png

Disable this feature if you prefer to type all of your own closing characters.