在 Visual Studio 代码 OSX 中的编辑器和集成终端之间切换焦点

Switch focus between editor and integrated terminal in Visual Studio Code OSX

我是 VS Code 的新手,也是 Whosebug 的新手。我在 OSX El Capitan 上使用 VSCode 1.18。我想按照

中所述配置编辑器和集成终端之间的切换

但是,我想在 Mac 笔记本电脑上使用命令按钮进行配置,因为使用键盘布局更方便。但是,当我使用相同的解决方案时,只是将 "ctrl" 更改为 "cmd",它不起作用。

参考 link 中给出的解决方案:有效

// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}

我的解决方案:不起作用

// Toggle between terminal and editor focus
{ "key": "cmd+`", "command": "workbench.action.terminal.focus"},
{ "key": "cmd+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}

任何人都可以帮助这有什么问题吗? "cmd" 的组合是否有任何限制?

注意:我不得不打开一个新问题,因为仍然不允许我对原始问题发表评论。

[⌘ + `](命令 + 反引号)已经是 built-in OS X 键盘快捷键,用于在活动应用程序的打开 windows 之间切换。如果您想使用此组合将焦点切换到 VS Code 中的终端,您需要在系统偏好设置中关闭快捷方式,在 Keyboard > Shortcuts > Keyboard 下,如下所示。禁用它后,退出 & re-open VS Code,您的键绑定将起作用。 (使用 OSX 10.13.3 & VS Code 1.22.0-insiders 测试)