ReSharper 2018.3 Help

Go to Containing Declaration

ReSharper | Navigate | Containing Declaration
Ctrl+[
ReSharper_GotoContainingDeclaration

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

  1. Set the caret into any position within the body of a type or a function.

  2. Press Ctrl+[ or choose ReSharper | Navigate | Containing Declaration from the main menu. Alternatively, you can press Ctrl+Shift+A, start typing the command name in the pop-up, and then choose it there.

  3. ReSharper will set the caret to the declaration of the type or function.

  4. 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:

Language: C#

Language: VB.NET

Language: C++

Language: HTML

Language: ASP.NET

Language: Razor

Language: JavaScript

Language: TypeScript

Language: CSS

Language: XML

Language: XAML

Language: Resx

Language: Build Scripts

Language: Protobuf

Language: JSON

Feature is available

Feature is available

Feature is available

Feature is not available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is not available

Feature is not available

Feature is available

Feature is not available

Feature is not available

Feature is available

Feature is not 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.

Last modified: 25 April 2019

See Also