Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some VSCode Keybindings not working in Ubuntu

I have just started with VSCode on Ubuntu and was looking for the equivalent of cmd+shift+D in Sublime on the Mac (duplicate selected text) . According to the docs I should use Ctrl+Shift+Alt+Down or Ctrl+Shift+Alt+Up but these keybindings are not working for me. When I look in File > Preferences > Keyboard Shortcuts, I see the definitions, but when I try to use them, nothing happens.

like image 816
kpg Avatar asked Nov 10 '22 01:11

kpg


1 Answers

upon checking my default keybinding, i found that editor.action.insertCursorAbove and editor.action.insertCursorDown each has two keybindings ctrl+shift+up/down and alt+shift+up/down.

so i changed editor.action.copyLinesDownAction and editor.action.copyLinesUpAction to ctrl+shift+up and ctrl+shift+down respectively. because in my ubuntu system ctrl+shift+alt+up/down keys were toggling the workspace.

like image 198
rajesh_chaurasiya Avatar answered Nov 11 '22 15:11

rajesh_chaurasiya