Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created July 3, 2019 01:24
Show Gist options
  • Save patrickmaciel/6019a84142f4d0342f13c801dc908887 to your computer and use it in GitHub Desktop.
Save patrickmaciel/6019a84142f4d0342f13c801dc908887 to your computer and use it in GitHub Desktop.
my vscode shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+k",
"command": "workbench.action.terminal.clear",
"when": "terminalFocus",
},
{
"key": "ctrl+tab",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "ctrl+alt+g",
"command": "-namespaceResolver.generateNamespace",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+g",
"command": "workbench.view.scm"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm"
},
{
"key": "ctrl+alt+k",
"command": "-code-runner.runCustomCommand"
},
{
"key": "ctrl+alt+k",
"command": "git.stageAll"
},
{
"key": "ctrl+alt+p",
"command": "git.push"
},
{
"key": "ctrl+alt+l",
"command": "git.pull"
},
{
"key": "ctrl+alt+f",
"command": "git.fetchAll"
},
{
"key": "alt+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "alt+1",
"command": "workbench.view.explorer"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer"
},
{
"key": "alt+0",
"command": "-workbench.action.lastEditorInGroup"
},
{
"key": "alt+0",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+abnt_c1",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+oem_2",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+n",
"command": "-namespaceResolver.highlightNotImported",
"when": "editorTextFocus"
},
{
"key": "ctrl+h ctrl+h",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+i",
"command": "workbench.action.focusAboveGroup"
},
{
"key": "ctrl+k ctrl+up",
"command": "-workbench.action.focusAboveGroup"
},
{
"key": "ctrl+k ctrl+k",
"command": "workbench.action.focusBelowGroup"
},
{
"key": "ctrl+k ctrl+down",
"command": "-workbench.action.focusBelowGroup"
},
{
"key": "ctrl+oem_5 ctrl+oem_5",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+j",
"command": "-editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+oem_6 ctrl+oem_6",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+0",
"command": "-editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+j",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+k ctrl+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "ctrl+j ctrl+l",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "ctrl+k + n",
"command": "explorer.newFile",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment