Navigate to containing declaration
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.
Go to containing declaration
Place the caret anywhere in the body of a type or a function.
Press Control+[ or choose
from the main menu . Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.ReSharper 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.
This feature is supported in the following languages and technologies:
The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the ReSharper by language section.
Last modified: 17 May 2024