Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Column selection like Visual Studio

Is it possible selecting multi-line columns like Visual Studio (or Notepad++ or other text editor)?

If I press shift+Alt buttons and move the arrows button the behavior of Visual Studio code is different from the other text editor.

Thanks!

like image 907
Nick Dominic Avatar asked Nov 22 '25 16:11

Nick Dominic


1 Answers

v1.43 brought what you are looking for in a new "Column Selection Mode". Demo:

column selection mode demo

See https://github.com/microsoft/vscode/issues/91249:

While this is checked, selecting with the mouse will create a column selection and Shift+arrow keys and Shift+Page Up/Down keys will also create column selection.


Also https://github.com/microsoft/vscode/issues/91361 which would act as a toggle for preexisting selections when enabling/disabling Column Selection Mode. So a current selection would be modified to a column selection (including multiple cursors) when enabling the mode and vice-versa.

And https://github.com/microsoft/vscode/issues/91362 where enabling the Column Selection Mode would be indicated in the Status Bar.

See https://code.visualstudio.com/updates/v1_43#_column-selection-mode

You can also disable Column Selection mode from the Status bar.

like image 147
Mark Avatar answered Nov 24 '25 09:11

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!