ReSharper Help

Go to Type of Symbol

ReSharper | Navigate | Type of Symbol
Ctrl+Shift+T
ReSharper_GotoTypeDeclaration

While Go to Declaration command navigates you to the place where a symbol is declared, the Type of Symbol command navigates to the type of the currently selected symbol. For example, if you have a variable var myVar = new Foo(); and invoke this command on a usage of myVar, it will bring you to the declaration of the class Foo. If you invoke this command on a method, it navigates to the method's return type. You can invoke this command from the editor, from the File Structure and other tool windows.

To navigate to the type of a symbol

  1. Place the caret on a symbol in the editor or select the symbol in a tool window.
  2. In the main menu, choose ReSharper | Navigate | Type of Symbol or press Ctrl+Shift+T.
  3. If the type of the symbol has only one declaration, ReSharper will navigate to it directly.
  4. If there are several declarations (e.g. in case of a partial lass), they will be 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_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: 30 June 2015