ReSharper 8.0 Web Help

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 will also be deleted. This feature may be easily switched off, but you shouldn't be afraid of inserting too many closing parentheses, brackets, or quotes by mistake: ReSharper will find out if the closing parenthesis or quote already exists and will leave only one character printed.

Regarding braces {}, ReSharper can provide a closing brace immediately on typing the opening one, or on pressing Enter. This behavior, along with a number of other auto-insertion settings, is configurable through ReSharper Options.

To configure auto-insertion of delimiters
  1. On the main menu, choose ReSharper | Options.
  2. Open the Environment | Editor tab.
  3. If you want to disable automatic insertion of the closing brackets, parentheses, quotes, or braces, clear the Auto-insert pair brackets, parentheses and quotes check box.
  4. To make ReSharper insert closing braces on pressing Enter instead of doing it right after you've typed an opening brace, make sure that Auto-insert closing brace and On Enter after opening brace are both selected.

This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available

Tip

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