ReSharper Web Help

In C#, any opening parenthesis, bracket, brace or quote (altogether called "delimiters") can be highlighted with color or outline whenever you place the caret at the corresponding closing delimiter, and vice versa.

To define how ReSharper should highlight matching delimiters
  1. On the main menu, choose ReSharper | Options .
  2. Open the Environment | Editor page.
  3. To enable delimiters matching, make sure to select Highlight matching delimiters when caret is:
    • at outer side to highlight matching delimiters when the caret is either to the left of an opening delimiter or to the right of a closing delimiter, or
    • at both sides to let ReSharper highlight matching delimiters when the caret is at any side of a delimiter.
  4. For Highlight with, select:
    • color to highlight matching delimiters with color, or
    • outline to highlight matching delimiters with outline covering the whole delimited block of code.
  5. Click Save to apply the modifications and let ReSharper choose the settings layer, or choose a particular settings layer in the Save To drop-down list. To learn more about saving ReSharper settings, see JetBrains .NET Tools Blog: Save or Save To in ReSharper Options.
To choose a color to highlight matching delimiters
  1. On the main menu, choose Tools | Options.
  2. Expand the Environment node in the left pane.
  3. Select Fonts and Colors.
  4. In Display items, scroll down the list until you find items that begin with ReSharper.
  5. Configure colors or custom options for ReSharper Brace Outline and/or ReSharper Matched Brace items, depending on what highlighting method you chose in ReSharper Options.
  6. Click OK to save changes and close the Visual Studio Options dialog box.

Highlighting matching C# braces with color:

Coding_Assistance__Matching_Delimiters__Color

Highlighting matching C# braces with outline:

Coding_Assistance__Matching_Delimiters__Outline


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.