当前的功能是给我一个下拉选项,选择哪个选项卡是如此烦人。是否有可能删除它,使标签将像在一些现代网络浏览器。
当前回答
我正在使用这个脚本AutoHotKey
^+WheelUp::
WinGetActiveTitle, originalWindow
WinActivate, ahk_exe Code.exe
Send ^{PgDn}
WinActivate, %originalWindow%
return
这让我可以按住control + shift,使用我的滚轮在VSCode选项卡之间移动,即使是另一个程序。我使用类似的浏览器选项卡和视频控件。
其他回答
Visual Studio Code v1.35.0允许您设置(Ctrl+Tab) / (Shift+Ctrl+Tab)键序列,通过将这些键序列分别绑定到命令“View: Open Next Editor”和“View: Open Previous Editor”来依次在编辑器之间切换。
在macOS:
导航到:代码>首选项>键盘快捷键 搜索或导航到以下两个选项: 查看:打开“下一步编辑器” 查看:打开以前的编辑器 将两个键绑定更改为所需的键序列。 查看:打开下一个编辑器-> (Ctrl+Tab) 查看:打开以前的编辑器-> (Shift+Ctrl+Tab) 您可能会遇到冲突的绑定。如果是,请注意该命令并重新分配或删除现有的键绑定。
如果你搞砸了,你可以通过右键单击任何键绑定并选择“重置键绑定”来恢复到给定绑定的默认状态。
Linux键映射来匹配浏览器:
[
{
"key": "ctrl+0",
"command": "workbench.action.lastEditorInGroup"
},
{
"key": "ctrl+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "ctrl+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "ctrl+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "ctrl+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "ctrl+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "ctrl+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "ctrl+8",
"command": "workbench.action.openEditorAtIndex8"
},
{
"key": "ctrl+9",
"command": "workbench.action.openEditorAtIndex9"
},
{
"key": "alt+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "alt+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "alt+3",
"command": "workbench.action.focusThirdEditorGroup"
}
]
我正在使用这个脚本AutoHotKey
^+WheelUp::
WinGetActiveTitle, originalWindow
WinActivate, ahk_exe Code.exe
Send ^{PgDn}
WinActivate, %originalWindow%
return
这让我可以按住control + shift,使用我的滚轮在VSCode选项卡之间移动,即使是另一个程序。我使用类似的浏览器选项卡和视频控件。
卓帕卡布拉有修正行为的正确答案。
我通常更喜欢使用CTRL + PAGE UP / DOWN来导航,而不是使用TAB键。
{
"key": "ctrl+pageUp",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+pageDown",
"command": "workbench.action.previousEditor"
}
@Combii我找到了交换的方法
CMD+1、CMD+2、CMD+3、CTRL+1、CTRL+2、CTRL+3、
在macOS系统下,转到:
代码>首选项>键盘快捷键
在那个页面上,点击页面右上方的按钮…
并添加下面的配置,然后保存。
[
{
"key": "cmd+0",
"command": "workbench.action.openLastEditorInGroup"
},
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8"
},
{
"key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9"
},
{
"key": "ctrl+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.focusThirdEditorGroup"
}
]
您现在可以使用CMD+[1-9]切换选项卡和CTRL+[1-3]聚焦编辑器组!希望这个答案对你有帮助。
推荐文章
- 在VS Code中禁用“Comments are not allowed In JSON”错误
- 使用正则表达式搜索和替换Visual Studio代码
- 如何缩进/格式选择的代码在Visual Studio代码?
- 如何禁用预览文件与点击在vs代码?
- Visual Studio代码更改文件资源管理器托盘的字体大小?
- 如何防止Visual Studio Code总是重新打开以前的文件或文件夹?
- VSCode单引号到双引号自动替换
- 如何删除Visual Studio代码中的重复行?
- 如何设置每个文件类型的标签大小?
- 我如何添加环境变量启动。VSCode中的json
- 如何格式化Visual Studio Code项目中的所有文件?
- Pylint在Visual Studio代码中“未解决的导入”错误
- 如何在VS Code中默认打开文本换行
- 在Visual Studio代码中更改突出显示文本的颜色
- Visual studio代码-键盘快捷键-全部展开/折叠