dotPeek 2021.1 Help

Highlight Matching Delimiters

When you work with code in the editor, dotPeek can help you quickly understand code structure by highlighting the opening or closing delimiter ((), [], {}, and <>) 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.

  • dotPeek can highlight the matching delimiter only when the caret is at outer side, or when it is at any side of its pair.

To define how dotPeek highlights matching delimiters, use the Highlight matching delimiters preference on the Environment | Viewer page of dotPeek options Ctrl+Alt+S.

This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.

Last modified: 08 March 2021