JetBrains Rider 2017.2 Help

Go to Declaration

Navigate | Declaration
F12

This command allows you to navigate to the declaration of a symbol from any symbol usage.
To navigate in the opposite direction (symbol usages) you can invoke the Go to Declaration command when you are already on the symbol declaration, or 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

  1. Place the caret on a symbol in the editor or select the symbol in the Structure tool window.
  2. Choose Navigate | Go to Declaration in the main menu, press F12, or click the symbol holding the Ctrl key.
  3. If the symbol has only one declaration, JetBrains Rider will navigate to it directly.
  4. 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:
    • Click on the desired item to open it in the editor.
    • Select the desired item by pressing Up and Down and then 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 ThemedIcon SearchResults Screen Gray or press + on the numeric keypad.

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.

Last modified: 17 November 2017

See Also