Visual Studio Code有一个热键组合来将当前窗口分割为2或3个窗格:

"key": "ctrl + \",               "command": "workbench.action.splitEditor"

不幸的是,我无法在没有鼠标的情况下在这些窗格之间切换。我以前用F6的习惯也不管用了。

Visual Studio代码编辑器是否支持它?


当前回答

你要找的是workbench.action.terminal.focusNextPane:

{ 
  "key": "alt+down",
  "command": "workbench.action.terminal.focusNextPane",
  "when": "terminalFocus"
},
{ 
  "key": "alt+right",
  "command": "workbench.action.terminal.focusNextPane",
  "when": "terminalFocus"
},

其他回答

我最近发现了这个键绑定,它可以在组中的分裂窗格之间切换焦点。

"workbench.action.focusOtherSideEditor"

在MacOS版本(1.54.3)上,命令View:在编辑器组之间导航对我来说很有效。

你要找的是workbench.action.terminal.focusNextPane:

{ 
  "key": "alt+down",
  "command": "workbench.action.terminal.focusNextPane",
  "when": "terminalFocus"
},
{ 
  "key": "alt+right",
  "command": "workbench.action.terminal.focusNextPane",
  "when": "terminalFocus"
},

你需要的是: 查看:聚焦下一个编辑器组

我为这个快捷键定义了ctrl+H ! 这是所有!

此外,这个键绑定也可以:

workbench.action.navigateEditorGroups

另一种方法是使用Ctrl + PageUp/PageDow在窗格之间切换。