Skip to content

Instantly share code, notes, and snippets.

@sjotterman
Created April 26, 2018 14:00
Show Gist options
  • Save sjotterman/70a1f338403985c910be0c6b51bdf3b7 to your computer and use it in GitHub Desktop.
Save sjotterman/70a1f338403985c910be0c6b51bdf3b7 to your computer and use it in GitHub Desktop.
Visual Studio Code keybindings
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+alt+r", "command": "workbench.action.gotoSymbol" },
{ "key": "ctrl+l", "command": "workbench.action.focusNextGroup" },
{ "key": "ctrl+h", "command": "workbench.action.focusPreviousGroup" },
{ "key": "ctrl+0", "command": "workbench.action.focusSideBar" },
{
"key": "ctrl+k",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+;",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+'",
"command": "workbench.action.terminal.focus",
"when": "editorFocus && !editorReadonly"
},
{
"key": "ctrl+'",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!editorFocus && !editorReadonly"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+shift+.",
"command": "editor.action.marker.next",
"when": "editorFocus && !editorReadonly"
},
{
"key": "f8",
"command": "-editor.action.marker.next",
"when": "editorFocus && !editorReadonly"
},
{
"key": "ctrl+shift+,",
"command": "editor.action.marker.prev",
"when": "editorFocus && !editorReadonly"
},
{
"key": "escape",
"command": "hideSuggestWidget",
"when": "suggestWidgetVisible"
},
{
"key": "ctrl+alt+;",
"command": "workbench.action.showErrorsWarnings"
},
{
"key": "ctrl+t",
"command": "go.test.cursor"
},
{
"key": "ctrl+shift+;",
"command": "workbench.action.togglePanel"
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "ctrl+shift+'",
"command": "workbench.action.focusPanel"
},
{
"key": "alt+q",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+f",
"command": "-editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment