DEV Community

loading...

VSCode Tips: column (box) selection

lqj profile image QJ Li ・1 min read

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

Discussion (0)

pic
Editor guide