Go to Containing Declaration
With a single shortcut, ReSharper helps you quickly navigate to the declaration of a type or a function from any position within its body.
To navigate to a containing declaration
- Set the caret into any position within the body of a type or a function.
- In the main menu, choose or press Ctrl+[.
- ReSharper will set 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.
This feature is supported in the following languages/technologies:
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.