dotPeek 2020.3 Help

Go to Usages of Symbol

Navigate | Usages of Symbol
Control+Alt+F7

This command allows you quickly navigate to a specific usage of a symbol from its declaration or any other usage. You can invoke this command from the Assembly Explorer, from the File Structure window and other tool windows. The opposite navigation is available with the Go to Declaration command.

The list of usages that you get with this command is the same as that of Find Usages. But this command is more convenient for symbols with a limited number of usages, in cases when you are looking for a specific usage and want to get to this usage without opening the Find Results window.

Navigate to a usage of a symbol from the current context

  1. Place the caret at a symbol in the code viewer or select the symbol in a tool window.

  2. Press Control+Alt+F7 or choose from the main menu . Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.

  3. If there are multiple usages, they appear in a popup with their contexts. Do one of the following:

    • Click the desired item to open it in the editor.

    • Select the desired item by pressing Up and Down and then press Enter to open it in the editor.

    • Start typing to filter results. Note that you can use CamelHumps here. If necessary, press Esc once to clear the filtering.

    • To view and analyze the list of matched items in the Find Results window, click Show in Find Results ThemedIcon SearchResults Screen Gray png, press Shift+Enter or + on the numeric keypad .

    • To show the matched items on the type dependency diagram, press Alt+Num+ or click Show on Diagram ThemedIcon TypeLayoutAlt Screen Gray png.

Navigate to a specific usage of any symbol from the currently loaded assemblies

  1. Search the desired symbol using one of the following commands:

  2. When the desired symbol appears in the results list, select it using the keyboard and then press Control+Alt+F7.

  3. If there are multiple usages, they appear in a popup with their contexts. Do one of the following:

    • Click the desired item to open it in the editor.

    • Select the desired item by pressing Up and Down and then press Enter to open it in the editor.

    • Start typing to filter results. Note that you can use CamelHumps here. If necessary, press Esc once to clear the filtering.

    • To view and analyze the list of matched items in the Find Results window, click Show in Find Results ThemedIcon SearchResults Screen Gray png, press Shift+Enter or + on the numeric keypad .

    • To show the matched items on the type dependency diagram, press Alt+Num+ or click Show on Diagram ThemedIcon TypeLayoutAlt Screen Gray png.

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

Last modified: 21 August 2020