Created
May 19, 2021 10:08
-
-
Save pochka15/7470c53fca9159d4c1c3dde002e3eebe to your computer and use it in GitHub Desktop.
some bindings
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 defaults | |
| [ | |
| { | |
| "key": "ctrl+j", | |
| "command": "cursorDown", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+k", | |
| "command": "cursorUp", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+h", | |
| "command": "cursorLeft", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+l", | |
| "command": "cursorRight", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "alt+j", | |
| "command": "cursorHome", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "alt+k", | |
| "command": "cursorEnd", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "alt+l", | |
| "command": "cursorWordEndRight", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "alt+h", | |
| "command": "cursorWordStartLeft", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "shift+alt+left", | |
| "command": "-editor.action.smartSelect.shrink", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+j", | |
| "command": "editor.action.addSelectionToNextFindMatch", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "ctrl+m", | |
| "command": "center-editor-window.center", | |
| "when": "editorTextFocus || findWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+l", | |
| "command": "-center-editor-window.center", | |
| "when": "editorTextFocus || findWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "selectNextSuggestion", | |
| "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+k", | |
| "command": "selectPrevSuggestion", | |
| "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+enter", | |
| "command": "editor.action.insertLineBefore", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+enter", | |
| "command": "-editor.action.insertLineBefore", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+alt+enter", | |
| "command": "-editor.action.replaceAll", | |
| "when": "editorFocus && findWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+alt+enter", | |
| "command": "-search.action.replaceAll", | |
| "when": "replaceActive && searchViewletVisible && !findWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+;", | |
| "command": "findJump.activate" | |
| }, | |
| { | |
| "key": "shift+backspace", | |
| "command": "deleteRight", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+`", | |
| "command": "workbench.action.togglePanel" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "-workbench.action.togglePanel" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "-workbench.action.quickOpen" | |
| }, | |
| { | |
| "key": "ctrl+shift+a", | |
| "command": "-workbench.action.showCommands" | |
| }, | |
| { | |
| "key": "shift+alt+.", | |
| "command": "cursorBottom", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "shift+alt+,", | |
| "command": "cursorTop", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+m", | |
| "command": "editor.action.jumpToBracket", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+\\", | |
| "command": "-editor.action.jumpToBracket", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+\\", | |
| "command": "workbench.actions.view.problems" | |
| }, | |
| { | |
| "key": "ctrl+shift+m", | |
| "command": "-workbench.actions.view.problems" | |
| }, | |
| { | |
| "key": "f11", | |
| "command": "-workbench.action.toggleFullScreen" | |
| }, | |
| { | |
| "key": "ctrl+alt+k", | |
| "command": "-bookmarks.toggle", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+oem_comma", | |
| "command": "bookmarks.toggle" | |
| }, | |
| { | |
| "key": "alt+o", | |
| "command": "bookmarks.listFromAllFiles" | |
| }, | |
| { | |
| "key": "ctrl+alt+k", | |
| "command": "bookmarks.toggle" | |
| }, | |
| { | |
| "key": "ctrl+s", | |
| "command": "-workbench.action.files.saveAll" | |
| }, | |
| { | |
| "key": "shift+alt+z", | |
| "command": "editor.action.toggleWordWrap" | |
| }, | |
| { | |
| "key": "alt+z", | |
| "command": "-editor.action.toggleWordWrap" | |
| }, | |
| { | |
| "key": "ctrl+space", | |
| "command": "-sticky-selection.enterStickySelectionMode", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+f", | |
| "command": "-emacs.cursorWordRight", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+x u", | |
| "command": "-emacs.C-/", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+-", | |
| "command": "-emacs.C-/", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+/", | |
| "command": "-emacs.C-/", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+g", | |
| "command": "-emacs.C-g", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+m", | |
| "command": "-emacs.C-j", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "-emacs.C-j", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+k", | |
| "command": "-emacs.C-k", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+l", | |
| "command": "-emacs.C-l", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+backspace", | |
| "command": "-emacs.C-S_bs", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+w", | |
| "command": "-emacs.C-w", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+x ctrl+o", | |
| "command": "-emacs.C-x_C-o", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+y", | |
| "command": "-emacs.C-y", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+alt+.", | |
| "command": "-emacs.cursorBottom", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "down", | |
| "command": "-emacs.cursorDown", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "-emacs.cursorDown", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "-emacs.cursorDown", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "end", | |
| "command": "-emacs.cursorEnd", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+e", | |
| "command": "-emacs.cursorEnd", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+e", | |
| "command": "-emacs.cursorEnd", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "home", | |
| "command": "-emacs.cursorHome", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+a", | |
| "command": "-emacs.cursorHome", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+a", | |
| "command": "-emacs.cursorHome", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "left", | |
| "command": "-emacs.cursorLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "-emacs.cursorLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "-emacs.cursorLeft", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "pagedown", | |
| "command": "-emacs.cursorPageDown", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+v", | |
| "command": "-emacs.cursorPageDown", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "pageup", | |
| "command": "-emacs.cursorPageUp", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "alt+v", | |
| "command": "-emacs.cursorPageUp", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "right", | |
| "command": "-emacs.cursorRight", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+f", | |
| "command": "-emacs.cursorRight", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+f", | |
| "command": "-emacs.cursorRight", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "shift+alt+,", | |
| "command": "-emacs.cursorTop", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "up", | |
| "command": "-emacs.cursorUp", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "-emacs.cursorUp", | |
| "when": "editorTextFocus && !suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "-emacs.cursorUp", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "alt+b", | |
| "command": "-emacs.cursorWordLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+i", | |
| "command": "emacs.enterMarkMode", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+space", | |
| "command": "-emacs.enterMarkMode", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+i", | |
| "command": "emacs.exitMarkMode", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+g", | |
| "command": "-emacs.exitMarkMode", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+w", | |
| "command": "-emacs.M-w", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+i", | |
| "command": "extension.setMark" | |
| }, | |
| { | |
| "key": "alt+down", | |
| "command": "-block-travel.jumpDown", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+]", | |
| "command": "block-travel.selectDown", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "shift+alt+down", | |
| "command": "-block-travel.selectDown", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+[", | |
| "command": "block-travel.selectUp", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "shift+alt+up", | |
| "command": "-block-travel.selectUp", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "shift+alt+z", | |
| "command": "workbench.action.toggleZenMode" | |
| }, | |
| { | |
| "key": "ctrl+k z", | |
| "command": "-workbench.action.toggleZenMode" | |
| }, | |
| { | |
| "key": "ctrl+alt+o", | |
| "command": "workbench.action.focusNextGroup", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "alt+tab", | |
| "command": "-workbench.action.focusNextGroup", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "alt+x m", | |
| "command": "workbench.action.editor.changeLanguageMode" | |
| }, | |
| { | |
| "key": "ctrl+k m", | |
| "command": "-workbench.action.editor.changeLanguageMode" | |
| }, | |
| { | |
| "key": "ctrl+alt+l", | |
| "command": "editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" | |
| }, | |
| { | |
| "key": "shift+alt+f", | |
| "command": "-editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" | |
| }, | |
| { | |
| "key": "ctrl+alt+l", | |
| "command": "editor.action.formatDocument.none", | |
| "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+alt+f", | |
| "command": "-editor.action.formatDocument.none", | |
| "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly" | |
| }, | |
| { | |
| "key": "alt+insert", | |
| "command": "explorer.newFile" | |
| }, | |
| { | |
| "key": "ctrl+shift+alt+insert", | |
| "command": "workbench.action.files.newUntitledFile" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "-workbench.action.files.newUntitledFile" | |
| }, | |
| { | |
| "key": "alt+x s", | |
| "command": "workbench.action.openGlobalKeybindings" | |
| }, | |
| { | |
| "key": "ctrl+k ctrl+s", | |
| "command": "-workbench.action.openGlobalKeybindings" | |
| }, | |
| { | |
| "key": "alt+t", | |
| "command": "todo.toggleBox", | |
| "when": "editorTextFocus && editorLangId == 'todo'" | |
| }, | |
| { | |
| "key": "alt+enter", | |
| "command": "-todo.toggleBox", | |
| "when": "editorTextFocus && editorLangId == 'todo'" | |
| }, | |
| { | |
| "key": "alt+/", | |
| "command": "insertBestCompletion", | |
| "when": "atEndOfWord && textInputFocus && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-insertBestCompletion", | |
| "when": "atEndOfWord && textInputFocus && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'" | |
| }, | |
| // { | |
| // "key": "ctrl+1", | |
| // "command": "workbench.action.openEditorAtIndex1" | |
| // }, | |
| // { | |
| // "key": "alt+1", | |
| // "command": "-workbench.action.openEditorAtIndex1" | |
| // }, | |
| // { | |
| // "key": "ctrl+2", | |
| // "command": "workbench.action.openEditorAtIndex2" | |
| // }, | |
| // { | |
| // "key": "alt+2", | |
| // "command": "-workbench.action.openEditorAtIndex2" | |
| // }, | |
| // { | |
| // "key": "ctrl+3", | |
| // "command": "workbench.action.openEditorAtIndex3" | |
| // }, | |
| // { | |
| // "key": "alt+3", | |
| // "command": "-workbench.action.openEditorAtIndex3" | |
| // }, | |
| // { | |
| // "key": "ctrl+4", | |
| // "command": "workbench.action.openEditorAtIndex4" | |
| // }, | |
| // { | |
| // "key": "alt+4", | |
| // "command": "-workbench.action.openEditorAtIndex4" | |
| // }, | |
| // { | |
| // "key": "ctrl+5", | |
| // "command": "workbench.action.openEditorAtIndex5" | |
| // }, | |
| // { | |
| // "key": "alt+5", | |
| // "command": "-workbench.action.openEditorAtIndex5" | |
| // }, | |
| // { | |
| // "key": "ctrl+6", | |
| // "command": "workbench.action.openEditorAtIndex6" | |
| // }, | |
| // { | |
| // "key": "alt+6", | |
| // "command": "-workbench.action.openEditorAtIndex6" | |
| // }, | |
| // { | |
| // "key": "ctrl+7", | |
| // "command": "workbench.action.openEditorAtIndex7" | |
| // }, | |
| // { | |
| // "key": "alt+7", | |
| // "command": "-workbench.action.openEditorAtIndex7" | |
| // }, | |
| // { | |
| // "key": "ctrl+8", | |
| // "command": "workbench.action.openEditorAtIndex8" | |
| // }, | |
| // { | |
| // "key": "alt+8", | |
| // "command": "-workbench.action.openEditorAtIndex8" | |
| // }, | |
| // { | |
| // "key": "ctrl+9", | |
| // "command": "workbench.action.openEditorAtIndex9" | |
| // }, | |
| // { | |
| // "key": "alt+9", | |
| // "command": "-workbench.action.openEditorAtIndex9" | |
| // }, | |
| { | |
| "key": "ctrl+alt+[", | |
| "command": "bookmarks.jumpToPrevious", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+j", | |
| "command": "-bookmarks.jumpToPrevious", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+]", | |
| "command": "bookmarks.jumpToNext", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+l", | |
| "command": "-bookmarks.jumpToNext", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "shift+f10", | |
| "command": "-workbench.action.tasks.reRunTask" | |
| }, | |
| { | |
| "key": "ctrl+alt+;", | |
| "command": "findJump.activateWithSelection" | |
| }, | |
| { | |
| "key": "ctrl+shift+1", | |
| "command": "workbench.action.pinEditor", | |
| "when": "!activeEditorIsPinned" | |
| }, | |
| { | |
| "key": "ctrl+k shift+enter", | |
| "command": "-workbench.action.pinEditor", | |
| "when": "!activeEditorIsPinned" | |
| }, | |
| { | |
| "key": "ctrl+1", | |
| "command": "workbench.action.openEditorAtIndex1" | |
| }, | |
| { | |
| "key": "alt+1", | |
| "command": "-workbench.action.openEditorAtIndex1" | |
| }, | |
| { | |
| "key": "ctrl+2", | |
| "command": "workbench.action.openEditorAtIndex2" | |
| }, | |
| { | |
| "key": "alt+2", | |
| "command": "-workbench.action.openEditorAtIndex2" | |
| }, | |
| { | |
| "key": "ctrl+3", | |
| "command": "workbench.action.openEditorAtIndex3" | |
| }, | |
| { | |
| "key": "alt+3", | |
| "command": "-workbench.action.openEditorAtIndex3" | |
| }, | |
| { | |
| "key": "ctrl+4", | |
| "command": "workbench.action.openEditorAtIndex4" | |
| }, | |
| { | |
| "key": "alt+4", | |
| "command": "-workbench.action.openEditorAtIndex4" | |
| }, | |
| { | |
| "key": "ctrl+5", | |
| "command": "workbench.action.openEditorAtIndex5" | |
| }, | |
| { | |
| "key": "alt+5", | |
| "command": "-workbench.action.openEditorAtIndex5" | |
| }, | |
| { | |
| "key": "ctrl+1", | |
| "command": "-numberedBookmarks.jumpToBookmark1", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+2", | |
| "command": "-numberedBookmarks.jumpToBookmark2", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+3", | |
| "command": "-numberedBookmarks.jumpToBookmark3", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+4", | |
| "command": "-numberedBookmarks.jumpToBookmark4", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+5", | |
| "command": "-numberedBookmarks.jumpToBookmark5", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+o", | |
| "command": "-C_Cpp.SwitchHeaderSource", | |
| "when": "editorTextFocus && editorLangId == 'c' || editorTextFocus && editorLangId == 'cpp' || editorTextFocus && editorLangId == 'cuda-cpp'" | |
| }, | |
| { | |
| "key": "ctrl+oem_comma", | |
| "command": "-workbench.action.openSettings" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment