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 editor, 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 editor 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, ReSharper 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:
If the item you navigate to belongs to the current solution, ReSharper opens the corresponding file in the editor and places the caret at the symbol declaration. If it is found in referenced libraries, ReSharper navigates according to the settings defined on the Tools | External Sources options page.
This feature is supported in the following languages/technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.
- Go to Everything/Type
- Go to File
- 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