Extend/Shrink Selection

Extend Selection feature allows you to successively select larger blocks of code.

  1. Place the caret inside a piece of code you want to highlight;
  2. Press Ctrl + W as many times as you need to highlight the desired block. Alternatively, select ReSharper | Code | Extend Selection in the main menu.

Example:

As you press Ctrl + W a few times, the following pieces of code are highlighted in succession:




The Shrink Selection feature achieves the opposite effect. To shrink the current selection, press Ctrl + Shift + W or select ReSharper | Code | Shrink Selection in the main menu.

See Also

Other Code Editing Assistance