The updated preview version of Visual Studio 2017 added a new command called Expand Selection. Expand Selection command in Visual Studio allows us incrementally expand code block selection to the next logical block. As a result, this will make the selection of code snippet much faster. You can use the shortcuts Shift + Alt + = to expand your code block selection and also use Shift + Alt+ – to unselect the current selection.
Using Expand Selection Command in Visual Studio
First of all to select a specific section of code block press Shift + Alt + =, furthermore use the same shortcut to expand your selection block by block.
Use Shift + Alt + – to deselect the selection.
Related Tips :
Hope this helps!