This command allows you to navigate to the declaration of a symbol from any symbol usage in the code editor or from the Object Browser,Solution Explorer, Class View, File Structure, and other ReSharper tool windows. The opposite navigation is available with the Go to Usages of Symbol command.
You can also navigate to the declaration of a type that a variable, field, parameter, or method belongs to. For more information, see Go to Type of Symbol.
- Place the caret on a symbol usage in the code editor or select the symbol in another window.
ReSharper | Navigate | Go to Declaration
on the main menu, press Ctrl+B, or
click the symbol holding the
By default, Go To Declaration is available by Ctrl + left-click. If necessary, you can disable this shortcut. To do so, go to the Search & Navigation page of ReSharper options ( ReSharper | Options | Environment | Search & Navigation) and deselect the following check-box: Go to Declaration <Control + Left Click> in editor.
- If the symbol has only one declaration, ReSharper will navigate to it directly.
If the symbol several declarations, they will be listed in the drop-down list.
Do one of the following:
- To view the list of declarations in the Find Results window, click Show in Find Results or press + on the numeric keypad.
- To navigate directly to a declaration, select it in the drop-down list and press Enter.
If the target symbol belongs to the current solution, ReSharper will open the corresponding file in the editor and set the caret at the type declaration. If the symbol is found in referenced libraries, ReSharper navigates according to the settings defined in the External Sources page of the ReSharper options. For more information, see Navigating to Compiled Code.