Skip to content

Instantly share code, notes, and snippets.

@Chaoste
Created March 16, 2021 11:17
Show Gist options
  • Save Chaoste/0dc463687c194774b3047fc9aae5346e to your computer and use it in GitHub Desktop.
Save Chaoste/0dc463687c194774b3047fc9aae5346e to your computer and use it in GitHub Desktop.
VSCode Custom Key Bindings
// Place your key bindings in this file to override the defaults
[
// Select all occurences of selected string like in Atom
{
"key": "shift+cmd+d",
"command": "editor.action.selectHighlights",
"when": "editorFocus" }
,
// Avoid toggling this feature accidentally when closing tabs
{
"key": "cmd+ctrl+w",
"command": ""
},
// https://stackoverflow.com/questions/38957302/is-there-a-quick-change-tabs-function-in-visual-studio-code
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"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.openEditorAtIndex9"
},
{
"key": "ctrl+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.focusThirdEditorGroup"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment