Last active
May 7, 2021 00:56
-
-
Save deskangel/0757972c73373d61cd5575ac56efae97 to your computer and use it in GitHub Desktop.
Personal vscode keybindings for Ubuntu
This file contains 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": "ctrl+k", | |
"command": "deleteAllRight", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+k ctrl+k", | |
"command": "-deleteAllRight", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "cursorHome", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+left", | |
"command": "cursorHome", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "home", | |
"command": "cursorHome", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+a", | |
"command": "cursorHomeSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+home", | |
"command": "cursorHomeSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "cursorEnd", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "end", | |
"command": "cursorEnd", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+unknown", | |
"command": "cursorEndSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+end", | |
"command": "cursorEndSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "meta+z", | |
"command": "undo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "undo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+meta+z", | |
"command": "redo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "redo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
{ | |
"key": "ctrl+shift+e", | |
"command": "-workbench.view.explorer" | |
}, | |
{ | |
"key": "ctrl+shift+e", | |
"command": "-workbench.action.quickOpenNavigatePreviousInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
{ | |
"key": "meta+s", | |
"command": "workbench.action.files.save" | |
}, | |
{ | |
"key": "ctrl+s", | |
"command": "workbench.action.files.save" | |
}, | |
{ | |
"key": "ctrl+meta+up", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+up", | |
"command": "-editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+meta+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "-editor.action.moveLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+o", | |
"command": "editor.action.insertLineAfter", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-editor.action.insertLineAfter", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "cursorDown", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "down", | |
"command": "cursorDown", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "cursorUp", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "up", | |
"command": "cursorUp", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+p", | |
"command": "cursorUpSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+up", | |
"command": "cursorUpSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+n", | |
"command": "cursorDownSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+down", | |
"command": "cursorDownSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "cursorLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "left", | |
"command": "cursorLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+b", | |
"command": "cursorLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+left", | |
"command": "cursorLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "cursorRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "right", | |
"command": "cursorRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+f", | |
"command": "cursorRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+right", | |
"command": "cursorRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+e", | |
"command": "cursorEndSelect" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "editor.action.clipboardCopyAction", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "-editor.action.clipboardCopyAction", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "editor.action.clipboardPasteAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+f", | |
"command": "actions.find" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "-actions.find" | |
}, | |
{ | |
"key": "shift+meta+f", | |
"command": "workbench.action.findInFiles" | |
}, | |
{ | |
"key": "ctrl+shift+f", | |
"command": "-workbench.action.findInFiles" | |
}, | |
{ | |
"key": "meta+a", | |
"command": "editor.action.selectAll", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-editor.action.selectAll", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "meta+/", | |
"command": "editor.action.addCommentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+k ctrl+c", | |
"command": "-editor.action.addCommentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+/", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+/", | |
"command": "-editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+d", | |
"command": "editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+meta+d", | |
"command": "editor.action.addSelectionToPreviousFindMatch" | |
}, | |
{ | |
"key": "meta+k meta+d", | |
"command": "editor.action.moveSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+k ctrl+d", | |
"command": "-editor.action.moveSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+meta+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+backspace", | |
"command": "deleteWordLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "-deleteWordLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+d", | |
"command": "deleteWordRight", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+delete", | |
"command": "-deleteWordRight", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+backspace", | |
"command": "deleteAllLeft" | |
}, | |
{ | |
"key": "shift+meta+p", | |
"command": "workbench.action.showCommands" | |
}, | |
{ | |
"key": "ctrl+shift+p", | |
"command": "-workbench.action.showCommands" | |
}, | |
{ | |
"key": "meta+p", | |
"command": "workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+i", | |
"command": "editor.action.format", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "workbench.action.quickOpenSelectNext", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+down", | |
"command": "-selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "showNextParameterHint", | |
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "-showNextParameterHint", | |
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
}, | |
{ | |
"key": "meta+n", | |
"command": "workbench.action.files.newUntitledFile" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "-workbench.action.files.newUntitledFile" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "list.focusDown", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "down", | |
"command": "list.focusDown", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "workbench.action.quickOpenSelectPrevious", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "list.focusUp", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "up", | |
"command": "list.focusUp", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+up", | |
"command": "-selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "showPrevParameterHint", | |
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
}, | |
{ | |
"key": "alt+up", | |
"command": "-showPrevParameterHint", | |
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
}, | |
{ | |
"key": "meta+w", | |
"command": "workbench.action.closeWindow", | |
"when": "!editorIsOpen && !multipleEditorGroups" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-workbench.action.closeWindow", | |
"when": "!editorIsOpen && !multipleEditorGroups" | |
}, | |
{ | |
"key": "meta+w", | |
"command": "workbench.action.closeActiveEditor" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-workbench.action.closeActiveEditor" | |
}, | |
{ | |
"key": "meta+w", | |
"command": "workbench.action.closeGroup", | |
"when": "activeEditorGroupEmpty && multipleEditorGroups" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-workbench.action.closeGroup", | |
"when": "activeEditorGroupEmpty && multipleEditorGroups" | |
}, | |
{ | |
"key": "meta+x", | |
"command": "editor.action.clipboardCutAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "-editor.action.clipboardCutAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+x", | |
"command": "notebook.cell.cut", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "-notebook.cell.cut", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "meta+x", | |
"command": "filesExplorer.cut", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "-filesExplorer.cut", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "meta+enter", | |
"command": "scm.acceptInput", | |
"when": "scmRepository" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-scm.acceptInput", | |
"when": "scmRepository" | |
}, | |
{ | |
"key": "meta+enter", | |
"command": "workbench.action.submitComment", | |
"when": "commentEditorFocused" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-workbench.action.submitComment", | |
"when": "commentEditorFocused" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "deleteRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "delete", | |
"command": "deleteRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+alt+-", | |
"command": "-workbench.action.navigateBack" | |
}, | |
{ | |
"key": "alt+right", | |
"command": "workbench.action.navigateForward" | |
}, | |
{ | |
"key": "ctrl+shift+-", | |
"command": "-workbench.action.navigateForward" | |
}, | |
{ | |
"key": "alt+.", | |
"command": "workbench.action.navigateToLastEditLocation" | |
}, | |
{ | |
"key": "ctrl+k ctrl+q", | |
"command": "-workbench.action.navigateToLastEditLocation" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "filesExplorer.paste", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "notebook.cell.copy", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "notebook.cell.copy", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "filesExplorer.copy", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "filesExplorer.copy", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "keybindings.editor.copyKeybindingEntry", | |
"when": "inKeybindings && keybindingFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "keybindings.editor.copyKeybindingEntry", | |
"when": "inKeybindings && keybindingFocus" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "problems.action.copy", | |
"when": "problemFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "problems.action.copy", | |
"when": "problemFocus" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "remote.tunnel.copyAddressInline", | |
"when": "tunnelViewFocus && tunnelType == 'Detected' || tunnelViewFocus && tunnelType == 'Forwarded'" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "remote.tunnel.copyAddressInline", | |
"when": "tunnelViewFocus && tunnelType == 'Detected' || tunnelViewFocus && tunnelType == 'Forwarded'" | |
}, | |
{ | |
"key": "meta+c", | |
"command": "search.action.copyMatch", | |
"when": "fileMatchOrMatchFocus" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "search.action.copyMatch", | |
"when": "fileMatchOrMatchFocus" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "notebook.cell.paste", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "workbench.action.terminal.paste", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+shift+v", | |
"command": "-workbench.action.terminal.paste", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "meta+.", | |
"command": "editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "-editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "meta+.", | |
"command": "problems.action.showQuickFixes", | |
"when": "problemFocus" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "-problems.action.showQuickFixes", | |
"when": "problemFocus" | |
}, | |
{ | |
"key": "meta+.", | |
"command": "settings.action.editFocusedSetting", | |
"when": "inSettingsSearch" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "-settings.action.editFocusedSetting", | |
"when": "inSettingsSearch" | |
}, | |
{ | |
"key": "alt+b", | |
"command": "cursorWordStartLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+left", | |
"command": "-cursorWordStartLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+f", | |
"command": "cursorWordStartRight" | |
}, | |
{ | |
"key": "shift+alt+b", | |
"command": "cursorWordStartLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+left", | |
"command": "-cursorWordStartLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "cursorWordEndRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+right", | |
"command": "-cursorWordEndRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "meta+v", | |
"command": "editor.action.clipboardPasteAction" | |
}, | |
{ | |
"key": "ctrl+v", | |
"command": "editor.action.clipboardPasteAction" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment