Skip to content

Instantly share code, notes, and snippets.

@curtischong
Last active January 7, 2020 00:57
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 curtischong/fbac34ae9492ce5e36b97f8c798fafe4 to your computer and use it in GitHub Desktop.
Save curtischong/fbac34ae9492ce5e36b97f8c798fafe4 to your computer and use it in GitHub Desktop.
vscode keybindings.json
// Place your key bindings in this file to overwrite the defaults
// Where is this file: preferences -> keyboard shortcuts -> the {} button in the top right
[
// Switching tabs
{
"key": "cmd+0",
"command": "workbench.action.openLastEditorInGroup"
},
{
"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.lastEditorInGroup"
},
{
"key": "ctrl+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.focusThirdEditorGroup"
},
// Switching panes
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
}
]
@curtischong
Copy link
Author

Wed Aug 14, 2019 - Added shortcuts for window switching (https://stackoverflow.com/a/50593160/4647924)

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