Line selection not working properly on VSCode

Viewed 2505

My line selection is acting very weird on VSCode. It goes in this weird multi-line edit mode. I am unable to select multiple lines fully by dragging my mouse down on lines. Even when I use shift and down arrow it does not select the whole line.

Mouse drag selection not working:

Keyboard Shift + Down Arrow not working:

5 Answers

On Mac the solution was simple go to the menu "Selection" and deselect the option "Column Selection Mode".

Now it works as expected.

code selection

Two things I use:

  • I select full lines by clicking and dragging in the 'numbers' columns

  • For multi-line to work I use the menu option -> Selection -> Column Select Mode

I had the same issue. Resolved it as below.

  1. Go to Selection menu in vs code menu bar.
  2. Untick on Column Selection Mode option.

go to file, preference, settings and search for Editor:Column Selection and desable. this solve my problem

There are two options:

  1. If you wish to perform the desired selection without changing the settings, then hit the ALT key and drag your mouse

  2. Or, just Go to Selection menu in VS code menu and untick the Column Selection Mode option.

Related