当焦点在终端上时,有什么方法可以通过键盘快捷键在 VScode 中切换 windows 吗?
Is there any way to switch windows in VScode via keyboard shortcut when the focus is on the terminal?
我想在 windows (vscode) 之间切换,无论焦点是在编辑器上还是在(任何)终端上。我在 json 文件中尝试了下面的键绑定,但没有任何运气。此外,删除 "when"
子句或仅使用 terminalFocus 也不起作用。如果焦点在编辑器上,我似乎只能切换 windows 。如有任何建议,我们将不胜感激。
{
"key": "ctrl+w",
"command": "workbench.action.switchWindow",
"when": "terminalFocus || editorTextFocus"
}
在我的测试中,我看到了两个选项:
(1) 似乎除 Ctrl+W 之外的任何其他键绑定都按预期工作;或
(2) 如果要使用 Ctrl+W,请将命令 workbench.action.switchWindow
添加到设置中的 Terminal > Integrated: Commands to Skip Shell
列表 作为您的快捷键。
我想在 windows (vscode) 之间切换,无论焦点是在编辑器上还是在(任何)终端上。我在 json 文件中尝试了下面的键绑定,但没有任何运气。此外,删除 "when"
子句或仅使用 terminalFocus 也不起作用。如果焦点在编辑器上,我似乎只能切换 windows 。如有任何建议,我们将不胜感激。
{
"key": "ctrl+w",
"command": "workbench.action.switchWindow",
"when": "terminalFocus || editorTextFocus"
}
在我的测试中,我看到了两个选项:
(1) 似乎除 Ctrl+W 之外的任何其他键绑定都按预期工作;或
(2) 如果要使用 Ctrl+W,请将命令 workbench.action.switchWindow
添加到设置中的 Terminal > Integrated: Commands to Skip Shell
列表 作为您的快捷键。