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
- Place the caret on a symbol in the code viewer or select the symbol in a tool window.
- Choose on the main menu, press Ctrl+B, or click the symbol holding the Ctrl key.
- If the symbol has only one declaration, dotPeek will navigate to it directly.
- 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:
This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.
- Go to Everything/Type
- Go to Assembly
- Go to File Member
- Go to Symbol
- Go to Base Symbols
- Go to Derived Symbols
- Go to Implementation
- Go to Type of Symbol
- Go to Usages of Symbol
- Navigate to
- Go to Containing Declaration
- Navigation by Name
- Navigation from Symbols
- Navigate To
- Context-Dependent Navigation
- Navigating to Recent Locations
- Structural Search and Replace