简体   繁体   English

键盘快捷方式以在Mac上的VSCode中切换焦点?

[英]keyboard shortcut to switch focus in VSCode on a Mac?

Having a SQL file open in the editor, and psql running from the command line using the VSCode terminal, is there a keyboard shortcut to toggle the focus back and forth? 在编辑器中打开一个SQL文件,并使用VSCode终端从命令行运行psql ,是否有键盘快捷方式来回切换焦点? I end up doing the CMD and the ` key to open/close the terminal but it'd be nice just to switch back and forth. 我最终使用CMD和`键来打开/关闭终端,但是最好只是来回切换。 Mac user. Mac用户。

Answering my own question: you can define workbench.action.terminal.focus in Keyboard Shortcuts (Preferences -> Keyboard Shortcuts) and then use that shortcut plus the CMD+1 to focus back on the editor (or CMD-2 etc). 回答我自己的问题:您可以在“键盘快捷方式”(“首选项”->“键盘快捷方式”)中定义workbench.action.terminal.focus ,然后使用该快捷方式加上CMD+1来专注于编辑器(或CMD-2等)。 If someone has something more clever, let me know! 如果有人有更聪明的东西,请告诉我!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM