Skip to content

Instantly share code, notes, and snippets.

@fbedussi
Last active May 18, 2019 21:43
Show Gist options
  • Save fbedussi/90757a60caa2873c5188010d7f6e7e4e to your computer and use it in GitHub Desktop.
Save fbedussi/90757a60caa2873c5188010d7f6e7e4e to your computer and use it in GitHub Desktop.
// 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"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment