如何配置Visual Studio代码以使用Mac的标准选项卡切换快捷方式? [英] How to configure Visual studio code to use standard tab switching shortcut for mac?
问题描述
大多数具有选项卡式界面的OS X应用程序都允许使用Cmd+Shift+[
和Cmd+Shift+]
来切换选项卡.
Most OS X applications with tabbed interface allow using Cmd+Shift+[
and Cmd+Shift+]
to switch tabs.
VSCode不遵循此.有没有一种方法可以配置它以使用这些快捷方式快速切换到下一个(向右)和上一个(向左)选项卡.
VSCode does not follow this. Is there a way to configure it to use these shortcuts to quickly switch to the next (towards right) and previous (towards left) tab.
此行为不同于Ctrl+Tab
行为,后者显示最新缓冲区的菜单.反复按Ctrl+Tab
将在两个相同的最近缓冲区之间保持交替.但是我希望Cmd+Shift+[
或Cmd+Shift+]
都能在所有选项卡中循环,分别从右到左和从左到右.
This behavior is different from Ctrl+Tab
behavior which shows a menu of most recent buffers. Repeatedly pressing Ctrl+Tab
will keep alternating between same two recent buffers. But I would expect both Cmd+Shift+[
or Cmd+Shift+]
to cycle through all the tabs, in right to left and left to right direction respectively.
推荐答案
您可以根据需要自己绑定每个快捷方式.通过命令面板或菜单代码"->首选项"->键盘快捷键"打开keybindings.json
.
You can bind every shortcut yourself if you want. Open you keybindings.json
(via command palette or menu Code->Preferences->Keyboard Shortcuts).
按cmd+k cmd+k
键会为您提供一个小的输入字段,用于预填充正确的JSON语法.
Pressing cmd+k cmd+k
gives you a little input field that prefills the correct JSON syntax.
用于切换选项卡的命令称为workbench.action.nextEditor
和workbench.action.previousEditor
The commands for switching tabs are called workbench.action.nextEditor
and workbench.action.previousEditor
这篇关于如何配置Visual Studio代码以使用Mac的标准选项卡切换快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!