dotPeek 2016.1 Help

Finding Usages of a Symbol

Navigate | Find Usages
Alt+F7

This command allows finding all usages of a specific symbol in the currently loaded assemblies. You can start the search from the declaration of the symbol or from any other usage. You can invoke this command from the code viewer, from the File Structure Window and other tool windows.

To find usages of a symbol

  1. Place the caret on a symbol in the code viewer or select the symbol in a tool window.
  2. Do one of the following:
    • On the main menu, choose Navigate | Find Usages.
    • Right-click the selection and choose Find Usages on the context menu.
    • Press Alt+F7.
  3. If you try to search for usages of an overriding or implementing member of a derived type, you are prompted to specify whether you want to add usages of the base members to the list of search results. Choose No to search for usages of the overriding member only. Choose Yes to search for usages of both the overridden and base members.
  4. If a single usage is found, dotPeek will navigate you to the usage directly in the code viewer. Two or more search results will be shown in the Find Results Window.
Navigation_and_Search__Finding_Usages__Find_Usages__one_and_several

Finding usages of generic types

When searching for usages of generic types, e.g. IFoo<string>, you may actually want to find either all usages of IFoo<> or usages of the exact generic substitution IFoo<string> only.

By default, dotPeek allows you to disambiguate the search results by showing an additional popup:

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

See Also

Last modified: 19 August 2016