Visual Studio Code有一个热键组合来将当前窗口分割为2或3个窗格:
"key": "ctrl + \", "command": "workbench.action.splitEditor"
不幸的是,我无法在没有鼠标的情况下在这些窗格之间切换。我以前用F6的习惯也不管用了。
Visual Studio代码编辑器是否支持它?
Visual Studio Code有一个热键组合来将当前窗口分割为2或3个窗格:
"key": "ctrl + \", "command": "workbench.action.splitEditor"
不幸的是,我无法在没有鼠标的情况下在这些窗格之间切换。我以前用F6的习惯也不管用了。
Visual Studio代码编辑器是否支持它?
当前回答
显然,最好的答案是顶部答案上的隐藏注释。不知道为什么没有答案:
CMD + SHIFT + [
and
CMD + SHIFT +]
我不确定为什么有人会使用cmd + 1或其变体。
其他回答
https://code.visualstudio.com/docs/customization/keybindings#_editorwindow-management
Windows操作系统:Ctrl+1、Ctrl+2、Ctrl+3。
Mac: Cmd+1, Cmd+2和Cmd+3。
窗格之间没有循环切换,类似于Ctrl+制表符对文件的切换。
你要找的是workbench.action.terminal.focusNextPane:
{
"key": "alt+down",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+right",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
在Mac:
Move Editor Left ⌘K← workbench.action.moveEditorLeftInGroup
Move Editor Right ⌘K→ workbench.action.moveEditorRightInGroup
尝试Option+Tab按顺序切换,Cmd+按数字切换,shift+ Cmd+[(或])在跨编辑器的制表符之间切换
我最近发现了这个键绑定,它可以在组中的分裂窗格之间切换焦点。
"workbench.action.focusOtherSideEditor"