Skip to content

Instantly share code, notes, and snippets.

@rjurney
Last active October 2, 2023 23:27
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 rjurney/7854dff0d280584655daf09a888ac3f2 to your computer and use it in GitHub Desktop.
Save rjurney/7854dff0d280584655daf09a888ac3f2 to your computer and use it in GitHub Desktop.
VSCode Keyboard Shortcuts: How do you focus on the 2nd-8th editor tab in the first group
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "cmd+1",
"command": "workbench.action.firstEditorInGroup"
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2",
"when": "editorTextFocus"
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3",
"when": "editorTextFocus"
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4",
"when": "editorTextFocus"
},
{
"key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5",
"when": "editorTextFocus"
},
{
"key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6",
"when": "editorTextFocus"
},
{
"key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7",
"when": "editorTextFocus"
},
{
"key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8",
"when": "editorTextFocus"
},
{
"key": "cmd+r",
"command": "editor.action.startFindReplaceAction",
"when": "editorFocus || editorIsOpen"
},
{
"key": "alt+cmd+f",
"command": "-editor.action.startFindReplaceAction",
"when": "editorFocus || editorIsOpen"
},
{
"key": "ctrl+n",
"command": "-workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "cmd+right",
"command": "workbench.action.nextEditor"
},
{
"key": "cmd+left",
"command": "workbench.action.previousEditor"
}
]
{
// I work fine
{
"key": "cmd+1",
"command": "workbench.action.firstEditorInGroup"
},
// I do not exist :(
{
"key": "cmd+2",
"command": "workbench.action.secondEditorInGroup"
},
// All the rest USED to work, but lately do not :(
{
"key": "cmd+2",
"command": "workbench.action.focusSecondEditorInGroup"
},
{
"key": "cmd+3",
"command": "workbench.action.focusThirdEditorGroup"
},
{
"key": "cmd+4",
"command": "workbench.action.fourthEditorInGroup"
},
{
"key": "cmd+5",
"command": "workbench.action.fifthEditorInGroup"
},
{
"key": "cmd+6",
"command": "workbench.action.sixthEditorInGroup"
},
{
"key": "cmd+7",
"command": "workbench.action.seventhEditorInGroup"
},
{
"key": "cmd+8",
"command": "workbench.action.eighthEditorInGroup"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment