dotPeek Help

Go to Declaration

Navigate | Go To Declaration

This command allows you to navigate to the declaration of a symbol from any symbol usage. You can invoke this command from the code viewer, from the File Structure and other tool windows. Navigation in the opposite direction is available with the Go to Usages of Symbol command.

If you navigate from a usage of a method or a property, which is declared in an interface, the command will get you not to the interface itself, but to the exact implementation that is used.

To navigate to a declaration of a symbol

  1. Place the caret on a symbol in the code viewer or select the symbol in a tool window.
  2. Choose Navigate | Go to Declaration on the main menu, press Ctrl+B, or click the symbol holding the Ctrl key.
  3. If the symbol has only one declaration, dotPeek will navigate to it directly.
  4. If the symbol several declarations (e.g. it it is a partial class), they are listed in the drop-down list. Do one of the following:
    • Click on the desired item to open it in the editor.
    • Select the desired item by pressing UpArrow and DownArrow and the press Enter to open it in the editor.
    • To view and analyze the list of matched items in the Find Results window, click Show in Find Results go_to__show_in_find_results or press + on the numeric keypad.

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

See Also

Last modified: 3 September 2015