ReSharper 2025.1 Help

Select containing declarations

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 Control+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: ASP.NET

Language: Razor

Language: XAML

Language: Resx

Language: Build Scripts

Feature is available in C#

Feature is available in Visual Basic

Feature is available in C++

Feature is available in ASP.NET

Feature is available in Razor

Feature is available in XAML

Feature is available in Resource files

Feature is available in build script files

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 Languages and frameworks section.

Last modified: 11 February 2024