ReSharper Help

Go to Declaration

ReSharper | Navigate | Go To Declaration
Ctrl+B
ReSharper_GotoDeclaration

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

  1. Place the caret on a symbol in the editor or select the symbol in a tool window.
  2. Choose ReSharper | Navigate | Go to Declaration on the main menu, press Ctrl+B, or click the symbol holding the Ctrl key.
  3. If the symbol has only one declaration, ReSharper will navigate to it directly.
  4. 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:
    • Click on the desired item to open it in the editor.
    • Select the desired item by pressing UpArrow and DownArrow and the 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 go_to__show_in_find_results or press + on the numeric keypad.

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:

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

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.

See Also

Last modified: 3 September 2015