Skip to content

Instantly share code, notes, and snippets.

@Willmo36
Last active November 11, 2016 11:13
Show Gist options
  • Save Willmo36/a57ef93ca795dcfff64e to your computer and use it in GitHub Desktop.
Save Willmo36/a57ef93ca795dcfff64e to your computer and use it in GitHub Desktop.
VSCode keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+alt+l",
"command": "editor.action.formatDocument"
},
{
"key": "alt+a",
"command": "editor.action.replaceAll",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorFocus"
},
{
"key": "alt+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+h",
"command": "editor.action.startFindReplaceAction"
},
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "editorFocus"
},
{
"key": "cmd+[",
"command": "editor.action.commentLine",
"when": "editorFocus"
},
{
"key": "cmd+-",
"command": "editor.fold",
"when": "editorFocus"
},
{
"key": "cmd+shift+-",
"command": "editor.foldAll",
"when": "editorFocus"
},
{
"key": "cmd+=",
"command": "editor.unfold",
"when": "editorFocus"
},
{
"key": "cmd+shift+=",
"command": "editor.unfoldAll",
"when": "editorFocus"
},
{
"key": "cmd+enter",
"command": "workbench.action.keepEditor",
"when": "editorFocus"
},
{
"key": "ctrl+alt+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" },
{ "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" },
{ "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" },
{ "key": "cmd+9", "command": "workbench.action.openEditorAtIndex9" },
{ "key": "cmd+0", "command": "workbench.action.openLastEditorInGroup" },
{ "key": "alt+1", "command": "workbench.action.focusFirstEditorGroup" },
{ "key": "alt+2", "command": "workbench.action.focusSecondEditorGroup" },
{ "key": "alt+3", "command": "workbench.action.focusThirdEditorGroup" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment