@Combii I found a way to swap
CMD + 1 , CMD + 2 , CMD + 3 with CTRL + 1 , CTRL + 2 , CTRL + 3 , ...
On macOS, go to:
Code> Settings> Keyboard Shortcuts
On this page, select the link
keybindings.json
which is located directly below the search field and add the configuration below, then save.
[ { "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" } ]
Now you can use CMD + [1-9] to switch between tabs and CTRL + [1-3] to focus editor groups! Hope this answer is helpful.
yiyuan lv Sep 07 '17 at 3:19 on 2017-09-07 03:19
source share