Skip to content

Instantly share code, notes, and snippets.

@iamatypeofwalrus
Created January 19, 2018 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamatypeofwalrus/c3aeae4c8ad593f2dace2d54bad74936 to your computer and use it in GitHub Desktop.
Save iamatypeofwalrus/c3aeae4c8ad593f2dace2d54bad74936 to your computer and use it in GitHub Desktop.
VS Code Key Bindings
[
// Git
{
"key": "ctrl+b",
"command": "gitlens.toggleFileBlame",
"when": "editorTextFocus && gitlens:activeIsBlameable"
}
{
"key": "alt+cmd+s",
"command": "git.stageSelectedRanges"
},
// Editing
{
"key": "cmd+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+enter",
"command": "editor.action.insertLineBefore",
"when": "editorTextFocus"
},
// Find Box
{
"key": "alt+cmd+r",
"command": "toggleFindRegex",
"when": "editorFocus"
},
{
"key": "alt+cmd+c",
"command": "toggleSearchCaseSensitive",
"when": "searchInputBoxFocus && searchViewletVisible"
},
// Grag bag!
{
"key": "cmd+k z",
"command": "workbench.action.toggleZenMode"
},
{
"key": "cmd+k l",
"command": "workbench.action.editor.changeLanguageMode"
},
{
"key": "cmd+k p",
"command": "workbench.action.files.copyPathOfActiveFile"
},
// Make VS Code more Atom like
{
"key": "cmd+r",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+e",
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+k ctrl+`",
"command": "workbench.action.terminal.kill"
},
// Integrated Termianl
// NOTE: you can focus the regular panels with cmd+1, cmd + 2, cmd+3
{
"key": "shift+cmd+alt+]",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "shift+cmd+alt+[",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "cmd+4",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment