Created
August 11, 2020 05:47
-
-
Save hparadiz/b609f9300997027f2668be01bc622afa to your computer and use it in GitHub Desktop.
VSCode Key Bindings for Linux to use Meta+ instead of Ctrl+ for most common shortcuts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "meta+c", | |
"command": "editor.action.clipboardCopyAction" | |
}, | |
{ | |
"key": "meta+x", | |
"command": "editor.action.clipboardCutAction" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "editor.action.clipboardPasteAction" | |
}, | |
{ | |
"key": "meta+n", | |
"command": "workbench.action.files.newUntitledFile" | |
}, | |
{ | |
"key": "meta+f", | |
"command": "actions.find" | |
}, | |
{ | |
"key": "meta+f", | |
"command": "-actions.find" | |
}, | |
{ | |
"key": "meta+s", | |
"command": "workbench.action.files.save" | |
}, | |
{ | |
"key": "ctrl+s", | |
"command": "-workbench.action.files.save" | |
}, | |
{ | |
"key": "meta+s", | |
"command": "workbench.action.files.save", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+x ctrl+s", | |
"command": "-workbench.action.files.save", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+meta+s", | |
"command": "workbench.action.files.saveAs" | |
}, | |
{ | |
"key": "ctrl+shift+s", | |
"command": "-workbench.action.files.saveAs" | |
}, | |
{ | |
"key": "shift+meta+s", | |
"command": "workbench.action.files.saveAs", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "meta+y", | |
"command": "redo" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "-redo" | |
}, | |
{ | |
"key": "shift+meta+z", | |
"command": "notebook.redo", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "-notebook.redo", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "shift+meta+n", | |
"command": "workbench.action.newWindow" | |
}, | |
{ | |
"key": "ctrl+shift+n", | |
"command": "-workbench.action.newWindow" | |
}, | |
{ | |
"key": "shift+meta+`", | |
"command": "workbench.action.terminal.new" | |
}, | |
{ | |
"key": "ctrl+shift+`", | |
"command": "-workbench.action.terminal.new" | |
}, | |
{ | |
"key": "meta+z", | |
"command": "undo" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "-undo" | |
}, | |
{ | |
"key": "meta+z", | |
"command": "notebook.undo", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "-notebook.undo", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "meta+left", | |
"command": "cursorLineStart" | |
}, | |
{ | |
"key": "meta+right", | |
"command": "cursorLineEnd" | |
}, | |
{ | |
"key": "meta+a", | |
"command": "editor.action.selectAll" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-editor.action.selectAll" | |
}, | |
{ | |
"key": "meta+a", | |
"command": "list.selectAll", | |
"when": "listFocus && listSupportsMultiselect && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-list.selectAll", | |
"when": "listFocus && listSupportsMultiselect && !inputFocus" | |
}, | |
{ | |
"key": "meta+a", | |
"command": "editor.action.webvieweditor.selectAll", | |
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-editor.action.webvieweditor.selectAll", | |
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "shift+meta+left", | |
"command": "cursorLineStartSelect" | |
}, | |
{ | |
"key": "shift+meta+right", | |
"command": "cursorLineEndSelect" | |
}, | |
{ | |
"key": "shift+meta+t", | |
"command": "workbench.action.reopenClosedEditor" | |
}, | |
{ | |
"key": "ctrl+shift+t", | |
"command": "-workbench.action.reopenClosedEditor" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment