Visual Studio Productivity Tips: Expand/Contract Selection feature to ease your life while selecting code block
How many times it happened when you tried to select a code block and then moved to its parent block to select the desired code? When the lines of code in a block increases, it becomes difficult to find the first line and last line.
In this part of my Visual Studio Productivity Tips series, we will learn how to use the all new 'Expand/Contract Selection' feature to select a logical code block in Visual Studio 2017.
Visual Studio Productivity Tips:
- Cycle Clipboard Ring feature to perform multiple copy/paste
- Limit search results to filename only
- Move between methods and properties efficiently
- Assigning keyboard shortcuts to Visual Studio command menus
- Adding and deleting text at multiple caret positions
- Create a project from existing code
- How to increase the list of recent files and projects shown in the Visual Studio File menu?
- Expand/Contract Selection feature to ease your life while selecting code block
Incrementally selecting a lines of code by its associated code block becomes easy with Visual Studio 2017 version 15.5 and above. If you are having the latest version of Visual Studio 2017, you can now quickly select a code block using the
This new feature allows you to grow your selection to the next logical code block and decrease it by the same code block based on your selection.
The keyboard shortcut [
Try it out! I hope, this will benefit you selecting a logical code block gradually. If you liked this feature, don't forget to share it with your friends and colleagues. This small tips will help them to improve their productivity while working with the latest version of the Visual Studio 2017 IDE.

Why not reach little more and connect with me directly on Twitter, Facebook and LinkedIn. I would love to hear your thoughts and opinions.