Quantcast
Viewing all articles
Browse latest Browse all 4569

Enable Ctrl+Alt+{Up, Down, Left, Right} shortcut for Visual Studio Code (Ubuntu 22.04.4 LTS)

I am struggling to set the shortcuts

  • Ctrl+Alt+ and
  • Ctrl+Alt+

for the following actions of Visual Studio Code (VSCode):

  • editor.action.insertCursorAbove and
  • editor.action.insertCursorBelow.

These actions are for using multiple cursors.

Following the guidance of this related answer and corresponding VSCode extension, I first disabled the Ubuntu shortcuts that manage windows across workspaces to avoid conflicts by using the following commands:

$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['']"$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['']"$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['']"$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['']"

However, after doing this and installing the extension, I am unable to use the shortcuts as intended in VSCode, even when they are defined as such:

Image may be NSFW.
Clik here to view.
enter image description here

I have noticed that VSCode is still not able to recognize the shortcuts. Specifically, after pressing Ctrl+Alt, any subsequent arrow key press (, , , or ) is ignored.

I think this problem may be related with the post Ubuntu 18.04.1 not recognizing Ctrl + Alt, but following its answer I am not able to solve the problem since the combination Ctrl+Alt does not appear as enabled in (GNOME) Tweaks.

Any help is highly appreciated.


Viewing all articles
Browse latest Browse all 4569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>