// Place your key bindings in this file to override the defaults [ { "key": "shift+cmd+g", "command": "-workbench.action.terminal.findPrevious", "when": "terminalFindWidgetFocused" }, { "key": "shift+cmd+g", "command": "-workbench.action.terminal.findPreviousTerminalFocus", "when": "terminalFocus" }, { "key": "shift+cmd+g", "command": "-editor.action.previousMatchFindAction", "when": "editorFocus" }, { "key": "shift+cmd+g", "command": "workbench.view.scm" }, { "key": "ctrl+shift+g", "command": "-workbench.view.scm" }, { "key": "shift+cmd+t", "command": "-workbench.action.reopenClosedEditor" }, { "key": "shift+cmd+t", "command": "workbench.action.terminal.openNativeConsole", "when": "!terminalFocus" }, { "key": "shift+cmd+c", "command": "-workbench.action.terminal.openNativeConsole", "when": "!terminalFocus" }, { "key": "shift+cmd+c", "command": "editor.action.commentLine", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+cmd+7", "command": "-editor.action.commentLine", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+b", "command": "-workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" }, { "key": "cmd+b", "command": "-workbench.action.showAllEditors" }, { "key": "cmd+k cmd+b", "command": "-workbench.action.toggleSidebarVisibility" }, { "key": "cmd+\\", "command": "-workbench.action.toggleSidebarVisibility" }, { "key": "cmd+1", "command": "-explorer.openToSide", "when": "filesExplorerFocus && !inputFocus" }, { "key": "cmd+1", "command": "-workbench.action.openEditorAtIndex1" }, { "key": "cmd+2", "command": "-workbench.action.openEditorAtIndex2" }, { "key": "alt+left", "command": "-gitlens.key.left", "when": "gitlens:key:left" }, { "key": "cmd+left", "command": "-cursorHome", "when": "textInputFocus" }, { "key": "cmd+left", "command": "cursorWordStartLeft", "when": "textInputFocus" }, { "key": "alt+left", "command": "-cursorWordStartLeft", "when": "textInputFocus" }, { "key": "alt+right", "command": "workbench.action.terminal.moveToLineEnd", "when": "terminalFocus" }, { "key": "cmd+right", "command": "-workbench.action.terminal.moveToLineEnd", "when": "terminalFocus" }, { "key": "cmd+right", "command": "cursorWordEndRight", "when": "textInputFocus" }, { "key": "alt+right", "command": "-cursorWordEndRight", "when": "textInputFocus" }, { "key": "shift+cmd+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+up", "command": "-editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+cmd+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+down", "command": "-editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+cmd+up", "command": "editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "alt+cmd+up", "command": "-editor.action.insertCursorAbove", "when": "editorTextFocus" }, { "key": "ctrl+cmd+down", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "alt+cmd+down", "command": "-editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "cmd+left", "command": "-workbench.action.terminal.moveToLineStart", "when": "terminalFocus" }, { "key": "alt+left", "command": "-breadcrumbs.focusPrevious", "when": "breadcrumbsActive && breadcrumbsVisible" }, { "key": "alt+left", "command": "cursorLineStart", "when": "textInputFocus" }, { "key": "ctrl+a", "command": "-cursorLineStart", "when": "textInputFocus" }, { "key": "cmd+h", "command": "editor.action.startFindReplaceAction" }, { "key": "alt+cmd+f", "command": "-editor.action.startFindReplaceAction" }, { "key": "shift+cmd+right", "command": "-cursorEndSelect", "when": "textInputFocus" }, { "key": "shift+cmd+right", "command": "cursorWordEndRightSelect", "when": "textInputFocus" }, { "key": "shift+alt+right", "command": "-cursorWordEndRightSelect", "when": "textInputFocus" }, { "key": "shift+cmd+left", "command": "cursorWordStartLeftSelect", "when": "textInputFocus" }, { "key": "shift+alt+left", "command": "-cursorWordStartLeftSelect", "when": "textInputFocus" }, { "key": "cmd+g", "command": "workbench.action.gotoLine" }, { "key": "ctrl+g", "command": "-workbench.action.gotoLine" }, { "key": "cmd+", "command": "undo", "when": "textInputFocus && !editorReadonly" }, { "key": "cmd+z", "command": "-undo", "when": "textInputFocus && !editorReadonly" }, { "key": "cmd+z", "command": "default:undo" }, { "key": "cmd+home", "command": "cursorTop", "when": "textInputFocus" }, { "key": "cmd+up", "command": "-cursorTop", "when": "textInputFocus" }, { "key": "ctrl+alt+b", "command": "-editor.action.formatDocument" }, { "key": "ctrl+shift+f", "command": "editor.action.formatDocument", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+alt+f", "command": "-editor.action.formatDocument", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+end", "command": "cursorBottom", "when": "textInputFocus" }, { "key": "cmd+down", "command": "-cursorBottom", "when": "textInputFocus" } ]