// Place your key bindings in this file to override the defaultsauto[] [ { "key": "cmd+k cmd+j", "command": "workbench.action.toggleMaximizedPanel" }, { "key": "cmd+j", "command": "workbench.action.terminal.focus", "when": "!terminalFocus" }, { "key": "cmd+k cmd+z", "command": "workbench.action.maximizeEditor" }, { "key": "cmd+k shift+cmd+z", "command": "workbench.action.evenEditorWidths" }, { "key": "alt+cmd+/", "command": "-liveshare.followToTheSide", "when": "liveshare:hasCollaborators" }, { "key": "alt+cmd+/", "command": "editor.action.blockComment", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+alt+a", "command": "-editor.action.blockComment", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+k cmd+u", "command": "editor.action.transformToUppercase" }, { "key": "cmd+k cmd+l", "command": "editor.action.transformToLowercase" }, { "key": "ctrl+shift+w", "command": "editor.emmet.action.wrapWithAbbreviation" }, { "key": "ctrl+t", "command": "-editor.action.transposeLetters", "when": "textInputFocus && !editorReadonly" }, { "key": "ctrl+t", "command": "extension.transpose" }, { "key": "cmd+h", "command": "workbench.files.action.collapseExplorerFolders" }, // prevent fat-fingering the settings hotkey { "key": "cmd+,", "command": "-workbench.action.openSettings" }, { // double press to open settings "key": "cmd+, cmd+,", "command": "workbench.action.openSettings" }, { "key": "cmd+, cmd+;", "command": "editor.action.fixAll", "when": "editorTextFocus" }, { // show error under cursor "key": "cmd+, cmd+.", "command": "editor.action.showHover", "when": "editorTextFocus" }, // activity bar { "key": "cmd+k cmd+b", "command": "workbench.action.toggleActivityBarVisibility", }, { "key": "ctrl+]", "command": "workbench.action.nextSideBarView", // "when": "sideBarFocus" }, { "key": "ctrl+[", "command": "workbench.action.previousSideBarView", // "when": "sideBarFocus" }, { "key": "cmd+, cmd+/", "command": "editor.action.triggerParameterHints", "when": "editorHasSignatureHelpProvider && editorTextFocus" }, // Focus editors and groups by cmd+number keys { "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" }, { "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" }, { "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" }, { "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" }, { "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" }, { "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" }, { "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" }, { "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" }, { "key": "cmd+9", "command": "workbench.action.openEditorAtIndex9" }, { "key": "cmd+shift+1", "command": "workbench.action.focusFirstEditorGroup" }, { "key": "cmd+shift+2", "command": "workbench.action.focusSecondEditorGroup" }, { "key": "cmd+shift+3", "command": "workbench.action.focusThirdEditorGroup" }, // move tabs around { "key": "cmd+k shift+cmd+right", "command": "-workbench.action.moveEditorRightInGroup" }, { "key": "cmd+k shift+cmd+right", "command": "workbench.action.moveEditorToRightGroup" }, { "key": "cmd+k shift+cmd+left", "command": "-workbench.action.moveEditorLeftInGroup" }, { "key": "cmd+k shift+cmd+left", "command": "workbench.action.moveEditorToLeftGroup" }, // terminal commands { "key": "cmd+t", "command": "workbench.action.terminal.new", "when": "terminalFocus" }, { "key": "ctrl+shift+`", "command": "-workbench.action.terminal.new" }, { "key": "cmd+w", "command": "workbench.action.terminal.kill", "when": "terminalFocus" }, { "key": "alt+cmd+down", "command": "workbench.action.terminal.focusNext", "when": "terminalFocus" }, { "key": "alt+cmd+up", "command": "workbench.action.terminal.focusPrevious", "when": "terminalFocus" }, // navigate between changes { "key": "alt+cmd+pagedown", "command": "editor.action.dirtydiff.next", "when": "editorTextFocus" }, { "key": "alt+cmd+pageup", "command": "editor.action.dirtydiff.previous", "when": "editorTextFocus" }, { "key": "cmd+k cmd+k", "command": "workbench.action.openGlobalKeybindings", "when": "!terminalFocus" }, { "key": "cmd+k cmd+s", "command": "-workbench.action.openGlobalKeybindings" }, { "key": "cmd+k cmd+s", "command": "-workbench.action.openGlobalKeybindings" }, { "key": "cmd+k", "command": "-workbench.action.terminal.clear", "when": "terminalFocus" }, { "key": "cmd+k cmd+k", "command": "workbench.action.terminal.clear", "when": "terminalFocus" } ]