How to select code blocks vertically in vscode?

Keyboard shortcut for vertical block selection:

To select code block vertically in your visual studio code, use Shift + Alt and then use the mouse to select lines vertically, from top-left to bottom-right.

Shift + Alt + Select with mouse

Vertical code block selection example

vscode vertical code block selection

Note: This keyboard shortcut is tested on Windows 10 Visual Studio Code Editor.