DEV Community

QJ Li
QJ Li

Posted on

VSCode Tips: column (box) selection

Column selection is a very handy tool when you need to edit column of text at the same time.

VSCode column selection demo

Shortcuts:

Place the cursor in one corner and then hold Shift+Alt while dragging to the opposite corner. You can use keyboard arror up/down to place more cursors on the lines you want to edit. Press [ESC] key to exit the multicusor mode.

More reference from VSCode site:

https://code.visualstudio.com/docs/editor/codebasics#_column-box-selection

Top comments (0)