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 Structure window and other tool windows.
To navigate in the opposite direction (symbol usages) you can use 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 at a symbol in the editor or select the symbol in the Structure tool window.
Choose Ctrl key.in the main menu, press F12, or click the symbol holding the
If the symbol has only one declaration, JetBrains Rider will navigate to it directly.
- If the symbol several declarations (e.g. 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, JetBrains Rider opens the corresponding file in the editor and places the caret at the symbol declaration. If it is found in referenced libraries, JetBrains Rider decompiles the corresponding assembly and locates the symbol in the decompiled file.
Invoking the command on symbol declarations
As Go to Declaration (including its Ctrl-click access) is one of the most frequently used commands, JetBrains Rider streamlines your navigation experience letting you use this command in navigation scenarios related to usages of the declared symbol, so you can invoke Go to Declaration even if your caret is already at a symbol declaration to study symbol usages.