24

according to the documentation here I can add multiple cursors in visual studio code by using alt+Click in the editor. Sadly alt+drag is already used by the window manager to move the window around, so visual-studio-code does not get any key events. So how do I change that keyboard configuration in visual studio code? I could not find anything in the default key combinations file.

I am not looking for solution that changes my window manager, I really like that behavior and use it very frequently already for a very long time.

Arne
  • 7,921
  • 9
  • 48
  • 66

2 Answers2

64

The easiest way in my opinion is:
From the top-level menu, click on

Selection -> Switch to Ctrl+Click for Multi-Cursor

Then you can use Ctrl+Click rather than Alt+Click.

You can see where this is in this screenshot: You can see where is this in this screenshot

My VSCode version is 1.24.1

  • 4
    I tag this as the correct answer for now. But it is not really a solution as it breaks code navigation https://code.visualstudio.com/docs/editor/editingevolved – Arne Aug 07 '19 at 15:08
  • 2
    Today I noticed a side-effect of this change: the link in terminal is changed to Alt+Click (which cause the original problem OP faced). So at this time either you can only choose one action for Ctrl+Click. For code navigation I can set keyboard shortcut, but for opening the link in terminal, there is no option to change. – DDMC Jan 30 '21 at 10:44
6

There is currently no way to do this but already an open issue on GitHub which addresses that.

DAXaholic
  • 33,312
  • 6
  • 76
  • 74