ReSharper 2016.3 Help

Auto-Inserting Matching Delimiters

By default, whenever you type an opening delimiter (, [, ", or ', a paired character is inserted automatically (whenever appropriate). If you change your mind and press Backspace to delete an opening delimiter, its closing pair is also deleted. If the pairing closing delimiter already exists, ReSharper will not add another one.

The matching symbols are inserted according to your formatting preferences.

Regarding braces {}, ReSharper can provide a closing brace immediately on typing the opening one, or on pressing Enter.

If necessary, you can change the default behavior. To do so, go to the Environment | Editor | Editor Behavior page of ReSharper options and use the controls in the Braces and Parentheses section.

This feature is supported in the following languages/technologies:

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.

Last modified: 12 October 2017

See Also