dotPeek 2017.2 Help

Extend/Shrink Selection

View | Extend/Shrink Selection
Ctrl+W / Ctrl+Shift+W

The Extend Selection command allows you to successively select expanding logical blocks of code so that you can easily select any expression in the code by placing the caret somewhere inside it and pressing Ctrl+W a few times. The command is also available in the main menu: View | Extend Selection.

/help/img/dotnet/2017.2/Coding_Assistance__Extend_Selection_01.png
/help/img/dotnet/2017.2/Coding_Assistance__Extend_Selection_02.png
/help/img/dotnet/2017.2/Coding_Assistance__Extend_Selection_03.png
/help/img/dotnet/2017.2/Coding_Assistance__Extend_Selection_04.png

Shrink Selection does exactly the opposite. Press Ctrl+Shift+W or choose View | Shrink Selection in the main menu to apply this command.

With CamelHumps (the Use CamelHumps for navigation check box on the Environment | General page of dotPeek options), the Extend/Shrink selection commands work in a slightly different way.

If the CamelHumps is enabled, the Extend/Shrink Selection commands take into account parts of compound names. Suppose you have placed the caret in the middle of a compound name with several parts that begin with uppercase letters:

/help/img/dotnet/2017.2/ExtendSelection_CamelHumps_1.png
With CamelHumps, pressing Ctrl+W for the first time selects the current part of the word:
/help/img/dotnet/2017.2/ExtendSelection_CamelHumps_2.png
Only after pressing this keystroke for the second time dotPeek selects the whole word:
/help/img/dotnet/2017.2/ExtendSelection_CamelHumps_3.png
All subsequent presses are processed as usual.

This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.

Last modified: 31 August 2017

See Also