Highlight Matching Delimiters
When you work with code in the editor, ReSharper can help you quickly understand code structure by highlighting the opening or closing delimiter (
<>) when you set the caret at its pair. 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.
If necessary, you can change the default behavior in the following ways:
Highlighting of matching delimiters can be turned off.
ReSharper can highlight the matching delimiter only when the caret is at outer side, or when it is at any side of its pair.
ReSharper can highlight matching delimiters with a color or with an outline border:
The color of delimiter highlighting is configurable.
To specify the color to highlight matching delimiters, go to the Visual Studio options (Environment | Fonts and Colors page, and then select the desired colors for the ReSharper Brace Outline and/or ReSHarper Matched Brace items.), open the
This feature is supported in the following languages and 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.