Skip to content

Instantly share code, notes, and snippets.

@AlexMelw
Last active August 18, 2020 09:39
Show Gist options
  • Save AlexMelw/c882e7acc1cc525965241b90461f8486 to your computer and use it in GitHub Desktop.
Save AlexMelw/c882e7acc1cc525965241b90461f8486 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+alt+d",
"command": "editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "alt+k",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+i ctrl+o",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+shift+Alt+f",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+Alt+u",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+Alt+H",
"command": "githd.viewHistory",
},
{
"key": "ctrl+shift+Alt+B",
"command": "githd.viewBranchHistory",
},
{
"key": "ctrl+left",
"command": "workbench.action.terminal.resizePaneLeft",
"when": "terminalFocus"
},
{
"key": "ctrl+right",
"command": "workbench.action.terminal.resizePaneRight",
"when": "terminalFocus"
},
{
"key": "ctrl+up",
"command": "workbench.action.terminal.resizePaneUp",
"when": "terminalFocus"
},
{
"key": "ctrl+down",
"command": "workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
},
{
"key": "shift+insert",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+insert",
"command": "references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "ctrl+shift+=",
"command": "-workbench.action.zoomOut"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.zoomIn"
},
{
"key": "ctrl+shift+=",
"command": "workbench.action.decreaseViewSize"
},
{
"key": "ctrl+shift+-",
"command": "workbench.action.increaseViewSize"
}
]

VS Code Shortcuts

Line wrapping

ALT+Z

TRIM lines

CTRL+K CTRL+X

Open new terminal tab:

CTRL+SHIFT+5

Cycle through tabs:

CTRL+PgUp and CTRL+PgDn

Switching between work-areas

  • CTRL+0 - Focus SideBar
  • CTRL+1 - Focus Left WorkArea
  • CTRL+2 - Focus Second from left WorkArea
  • ...
  • CTRL+` - Focus Terminal Panel

Focus terminal subpanels

  • Alt+⬅ - Focus left subpanel
  • Alt+➡ - Focus right subpanel

Toggle terminal panel

CTRL+J

Resize left and right tab group

CTRL+SHIFT+- and CTRL+SHIFT+=

Resize terminal panels vertically

CTRL+⬆ and CTRL+⬇

Resize terminal panels horizontally

CTRL+➡ and CTRL+⬅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment