VS 代码 - 集成终端 - 在代码和终端之间切换的键盘快捷键?

use*_*847 1 powershell visual-studio-code vscode-settings

任何建议如何在 VS Code 中的代码和集成终端之间切换?

例如,在 PowerShell ISE 中,它是: Ctr+D终端和Ctr+I代码

找不到与 VS Code 类似的内容。

预先感谢您的任何建议

tom*_*ard 5

目前,sqlaide 在此线程上的最后一篇文章有一个很好的答案(有效)。您打开 keybindings.json* 文件并在方括号之间添加以下文本。完成后,您可以使用 Ctrl+` 在代码和终端之间来回移动焦点。

*文件 > 首选项 > 键盘快捷键,然后单击 keybindings.json。

{
"key": "ctrl+`",        "command": "workbench.action.terminal.focus",
                        "when": "!terminalFocus"},
{
"key": "ctrl+`",        "command": "workbench.action.focusActiveEditorGroup",
                        "when": "terminalFocus"}
Run Code Online (Sandbox Code Playgroud)