ReSharper 2017.2 Help

Highlighting Usages in File

ReSharper | Find | Highlight Usages in File
Ctrl+Shift+F7
ReSharper_HighlightUsages

If you are looking for usages of a symbol in the current document, it could be more convenient to highlight all usages and jump between them, rather than to analyze the usages in the Find Results window. Note that read and write access usages are highlighted in different colors.

You can invoke this command on different symbols to highlight usages of several different symbols simultaneously. The highlighting is preserved until you press Esc.

To highlight usages of a symbol in the current document

  1. Position the caret at a symbol declaration or usage in the editor.
  2. In the main menu, choose ReSharper | Find | Highlight Usages in File or press Ctrl+Shift+F7.
  3. ReSharper highlights all read usages with blue and all write usages with red.
  4. The highlights are also duplicated with blue and red markers on the marker bar on the right. Checking these markers may be helpful if not all highlights are visible on the current screen.
    To navigate between the highlighted items, choose ReSharper | Find | Go to Next/Previous Highlight in the menu or press Ctrl+Alt+PageDown / Ctrl+Alt+PageUp. Alternatively, click the status indicator (that should be displaying ThemedIcon ErrorStripeFindNext Screen Gray ) in the right top corner of the editor to jump between the highlights.
    When you finish examining the highlights, press Esc to remove them.

Highlighting usages of a symbol in the current document

This feature is supported in the following languages and technologies:

Language: C#
Language: VB.NET
Language: C++
Language: HTML
Language: ASP.NET
Language: Razor
Language: JavaScript
Language: TypeScript
Language: CSS
Language: XML
Language: XAML
Language: Resx
Language: Build Scripts
Language: Protobuf
Language: JSON
Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is not available

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: 10 November 2017

See Also