Search code examples
visual-studio-code

How do I remap the `Alt+Click` action in visual studio code?


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.


Solution

  • 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