我试图弄清楚是否有一种方法可以设置键绑定(bind)以允许在我在内置终端中打开的终端窗口之间快速切换,而不必每次都单击下拉选择器。在进行个人键绑定(bind)或我可以在哪里看到 VSC 的所有可能命令的列表时,有人知道此命令吗?先感谢您!
最佳答案
如果您想要一些比使用任意键绑定(bind)更流畅的东西,您可以让 Ctrl+Tab 和 Ctrl+Shift+Tab 同时用于编辑器切换和终端切换。
使用 ctrl+shift+p
打开您的键绑定(bind)文件搜索 Open Keyboard Shortcuts (JSON)
.然后加..
{
"key": "ctrl+tab",
"command": "workbench.action.openNextRecentlyUsedEditorInGroup",
"when": "editorFocus"
},
{ "key": "shift+ctrl+tab",
"command": "workbench.action.openPreviousRecentlyUsedEditorInGroup",
"when": "editorFocus"
},
{
"key": "ctrl+tab",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
}
关于visual-studio-code - VS Code Key Binding快速切换终端屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44065101/