Skip to content

Instantly share code, notes, and snippets.

@gabrielsaints
Created January 10, 2020 13:52
Show Gist options
  • Save gabrielsaints/5bb857b2a55a9dddae1c9a47c0ed883d to your computer and use it in GitHub Desktop.
Save gabrielsaints/5bb857b2a55a9dddae1c9a47c0ed883d to your computer and use it in GitHub Desktop.
Visual Studio Code keybinds JSON configs
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+alt+f5",
"command": "workbench.action.debug.run",
"when": "!inDebugMode"
},
{
"key": "ctrl+f5",
"command": "-workbench.action.debug.run",
"when": "!inDebugMode"
},
{
"key": "ctrl+shift+alt+f6",
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+f5",
"command": "-workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+oem_2",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+numpad_divide",
"command": "editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+numpad_divide",
"command": "HookyQR.beautifyFile"
},
{
"key": "ctrl+numpad_add",
"command": "editor.action.reindentlines"
},
{
"key": "ctrl+shift+f8 ctrl+shift+f9",
"command": "indentSwitcher.si2to4"
},
{
"key": "alt+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+oem_1",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+oem_1",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "ctrl+k ctrl+1",
"command": "-editor.foldLevel1",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+2",
"command": "-editor.foldLevel2",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+3",
"command": "-editor.foldLevel3",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+4",
"command": "-editor.foldLevel4",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+5",
"command": "-editor.foldLevel5",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+6",
"command": "-editor.foldLevel6",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+7",
"command": "-editor.foldLevel7",
"when": "editorTextFocus"
},
{
"key": "ctrl+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+3",
"command": "-workbench.action.focusThirdEditorGroup"
},
{
"key": "ctrl+6",
"command": "-workbench.action.focusSixthEditorGroup"
},
{
"key": "ctrl+7",
"command": "-workbench.action.focusSeventhEditorGroup"
},
{
"key": "ctrl+2",
"command": "-workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+4",
"command": "-workbench.action.focusFourthEditorGroup"
},
{
"key": "ctrl+5",
"command": "-workbench.action.focusFifthEditorGroup"
},
{
"key": "ctrl+8",
"command": "-workbench.action.focusEighthEditorGroup"
},
{
"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+numpad_multiply",
"command": "editor.action.indentationToSpaces"
},
{
"key": "ctrl+numpad_subtract",
"command": "editor.action.indentUsingSpaces"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+oem_3",
"command": "-workbench.action.terminal.new"
},
{
"key": "ctrl+shift+alt+t",
"command": "workbench.action.terminal.kill"
},
{
"key": "ctrl+shift+enter",
"command": "-editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+enter",
"command": "-search.action.replaceAllInFile",
"when": "fileMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "ctrl+shift+enter",
"command": "-search.action.replaceAllInFolder",
"when": "folderMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "f5",
"command": "mysql.runQuery",
"when": "editorLangId == 'sql'"
},
{
"key": "ctrl+alt+e",
"command": "-mysql.runQuery",
"when": "editorLangId == 'sql'"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+l",
"command": "-extension.fabric8AnalyticsStackLogs"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment