解决方案1
-
Command + Shift + [: switch to the previous window
-
Command + Shift + ]: switch to the next window
这些快捷方式允许您在最后两个 Visual Studio Code 窗口之间切换。
OR
open command pallete CMD+SHIFT+P and search for Window: Focus Next Group
or Window: Focus Previous Group
commands to switch between the last two Visual Studio Code windows.
解决方案2
-
Ctrl +1 Focus into Left Editor Group
-
Ctrl +2 Focus into Side Editor Group
-
Ctrl +3 Focus into Right Editor Group
-
Ctrl +K Ctrl+Left Focus into Editor Group on the Left
-
Ctrl +K Ctrl+Right Focus into Editor Group on the Right
- Use Ctrl + PageUp/PageDow to switch between panes.
-
⌘K ⌘← / ⌘K ⌘→ Focus into previous/next editor group
解决方案3
You have to edit keybindings.json
. Use the Command Palette with CMD+SHIFT+P, enter
"Preferences: Open Keyboard Shortcuts (JSON)", and hit enter
.
然后在文件末尾添加:
[
// ...
{
"key": "ctrl+tab",
"command": "workbench.action.focusPreviousGroup"
},
{
"key": "ctrl+tab", // or change custom shortcuts
"command": "workbench.action.focusNextGroup"
}
]
OR
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "f6",
"command": "workbench.action.navigateEditorGroups"
}
]
OR
[
{
"key": "ctrl+tab",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditor",
"when": "!inEditorsPicker"
}
]