Highlight Usages in File

Instead of browsing/navigating through the search results using the Find Results window, you can simply highlight the usages in your code.

To highlight usages of a symbol in file:

  1. Position the caret at the symbol you want to search for in the editor;
  2. Press Ctrl + Shift + F7 or select ReSharper | Search | Highlight Usages in File in the main menu.
  3. In the following figure, we highlighted the usages of the local variable i. Note that the read accesses and the write accesses are highlighted in different colors:

  4. You can use the keyboard shortcut Ctrl + Alt + Up (respectively, Ctrl + Alt + Down) to navigate to the next (respectively, previous) usage.

    Tip:   To remove current highlighting, if any, press Escape.

See Also

Find UsagesGo to Usage |Code Navigation and Search