ReSharper 2018.3 Help

Selecting Containing Declarations


Ctrl+Shift+[
ReSharper_SelectContainingDeclaration

While the Extend selection command allows you to make a precise selection of a word, statement or a code block, sometimes you just need to select the current member where your caret is or the whole type. ReSharper helps you do so with a single keystroke. To select the current member, press Ctrl+Shift+[. If necessary, press the shortcut again to select the whole 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 available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

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