Navigate to containing declaration
Navigate | Containing Declaration
Ctrl0[
When your caret is anywhere in the body of a type or a function, you can jump to the declaration of that type or function with a single shortcut.
Place the caret anywhere in the body of a type or a function.
Press Ctrl0[ or choose Navigate | Containing Declaration from the main menu . Alternatively, you can press CtrlShift0A, start typing the command name in the popup, and then choose it there.
dotPeek will place the caret to the declaration of the type or function.
If the type or function is declared within another type, you can repeat step two to navigate to the declaration of the containing type.
tip
dotPeek provides a related feature — Select Containing Declaration (CtrlShift0[) .
This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.