ReSharper 8.0 Web Help

The Go to Declaration feature enables you to navigate to symbol declaration from any symbol usage.

To navigate to a declaration of a symbol
  1. Place the caret at a symbol usage in the editor, or select the symbol in the File Structure window.
  2. Do one of the following:
    • On the main menu, choose ReSharper | Navigate | Go to Declaration.
    • Click Go to Declaration on the context menu.
    • Press Ctrl+B.
    • Click the symbol holding the Ctrl key.
  3. If the symbol has only one declaration, ReSharper navigates you directly to it.
    If the symbol has several declarations, they are displayed in the drop-down list. So you can do one of the following:
    • To view the list of declarations in the Find Results window, click Show in Find Results go_to__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 a symbol belongs to the current solution, ReSharper opens the corresponding file in the editor and places the caret at the symbol declaration. If a symbol is found in referenced libraries, ReSharper navigates according to the settings defined on the External Sources page of the Options dialog box. For more information, see External Sources.

By default, Go To Declaration is available by Ctrl + left-click. To change the default behavior, use controls on the Search & Navigation page of the Options dialog box. For more information, see Search & Navigation.

To achieve the opposite goal, to navigate from the declaration of a symbol to its usage(s), use the Go to Usages of Symbol navigation feature. You can also navigate to the declaration of a type that a variable, field, parameter, or method has. For more information, see Go to Type of Symbol.


This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available

Tip

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.