Go to Type of Symbol
Go to Declaration
command navigates you to the place where a symbol is declared, the
Type of Symbol
command navigates to the declaration of the type of the currently selected symbol.
For example, if you have a variable
Foo myVar = new Foo();
and invoke this command on a usage of
myVar, it will bring you to the declaration of the class
If you invoke this command on a function, it navigates to the function's return type.
For variables of generic types, this command allows you to navigate to the generic type declaration as well as
to declarations of all generic parameters.
For example, suppose you have a type
class MyGeneric<X, Y> and a variable of this type
var myGeneric = new MyGeneric<Author, Book>.
Invoking this command on any usage of
you will be able to choose the navigation destination between
You can invoke this command from the code viewer, from the File Structure and other tool windows.
To navigate to the type of a symbol
- Place the caret on a symbol in the code viewer or select the symbol in a tool window.
- Press Ctrl+Shift+T or choose in the main menu .
- If the type of the symbol has only one declaration, dotPeek will navigate to it directly.
- 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:
- Go to Everything/Type
- Go to Assembly
- Go to File Member
- Go to Symbol
- Go to Base Symbols
- Go to Derived Symbols
- Go to Declaration
- Go to Implementation
- Go to Usages of Symbol
- Navigate to
- Go to Containing Declaration
- Navigation by Name
- Navigation from Symbols
- Navigate To
- Context-Dependent Navigation
- Navigating to Recent Locations
- Structural Search and Replace