Vscode: multi-cursor editing stops working on ubuntu

Created on 24 May 2016  路  9Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.1.1
  • OS Version: Ubuntu 16.04

alt+click and column selection "hold shift" + "alt" + "drag" stopped working gradually, now i can't use these at all.

*duplicate

Most helpful comment

Fix is here:
https://2buntu.com/articles/1529/visual-studio-code-comes-to-linux/

The keyboard shortcut for doing this is Alt+Click, which by default will move the window instead of adding another cursor. To fix this, we need to change a setting:

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"

All 9 comments

Fix is here:
https://2buntu.com/articles/1529/visual-studio-code-comes-to-linux/

The keyboard shortcut for doing this is Alt+Click, which by default will move the window instead of adding another cursor. To fix this, we need to change a setting:

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"

This actually never worked on Ubuntu with the default settings. This is a duplicate of #3091

Darival's fix worked on xenial.
Just run the below in terminal.

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"

@1415926535
it also works on yakkety yak

thank you so much @Darival - this issue has really been annoying!

thanks a lot @Darival !!

@Darival sorry to bring this back late, but for me that command isn't working or changing anything (using Ubuntu 14.04 and 16.10). Alt + click still drags the window around and the multiple cursors don't work for me. Was the command meant to remove the dragging key-binding from Ubuntu?

The message I get when I enter

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"

is

GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

@mar-ses I just have ubuntu 17.04 and it is still working with both Gnome and Unity, are you using a diferent desktop enviroment?

@Darival I think I'm using Unity, I don't think I changed anything with my desktop environment before, just what usually comes with Ubuntu.

Was this page helpful?
0 / 5 - 0 ratings