Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code : column selection not working

After a lot of research, I finally decided to try to find help here.

My setup (for work):

  • Debian Buster x86_64 (kernel: 4.13.0-1-amd64 4.13.4-2)
  • Visual Studio Code v1.19.3 (Commit 7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba)

When I try to use the "Column selection" feature, with Alt + Right click or Alt + Shift + Right click, it is not working.

This feature is really important for me, cause I edit a lot of configuration files... I already tried to change the gnome-shell default "windows key" used to interact with windows -> not better...

Would someone have an idea of whatever could be the cause of this issue ?

Thanks by advance.

H.

like image 784
Hikaru Avatar asked Feb 07 '18 14:02

Hikaru


People also ask

How do I select a column in VS Code?

Hold down the Alt key and select a column of text.

How do you select vertically in VS Code?

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.


2 Answers

For the ones who have tried to use the Alt Key + Mouse Selection, and failed. Try to Click the menu selection as follows:

Menu bar > Selection > {Click} Switch to Ctrl+Click for Multi Cursor. This will change the multi selection the with Ctrl key and mouse as well as enable to selection column selection with the Alt Key + Mouse Selection.

https://i.stack.imgur.com/x8tJN.png

like image 117
Calibr3 Avatar answered Oct 09 '22 02:10

Calibr3


Have a look at this. https://github.com/Microsoft/vscode/issues/34654

SHIFT + ALT + LEFT Mouse works for me

like image 3
Achilles Avatar answered Oct 09 '22 02:10

Achilles