当前的功能是给我一个下拉选项,选择哪个选项卡是如此烦人。是否有可能删除它,使标签将像在一些现代网络浏览器。
当前回答
在Linux/Windows上使用Visual Studio Code时,可以使用CTRL + PAGE_UP切换到上一个选项卡,CTRL + PAGE_DN切换到下一个选项卡。您还可以根据选项卡的(非零相对)索引切换到选项卡。你可以按住ALT键,再加一个数字(1到9)。
更多详情请点击这里
其他回答
默认情况下,Visual Studio Code中的Ctrl+Tab会按照最近使用的顺序循环使用制表符。这很令人困惑,因为它依赖于隐藏状态。
Web浏览器以可见的顺序循环浏览选项卡。这更直观。
要在Visual Studio Code中实现这一点,必须编辑keybindings.json。使用命令面板CTRL+SHIFT+P,输入“首选项:打开键盘快捷键(JSON)”,并按enter。
然后在文件末尾添加:
[
// ...
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
}
]
或者,只循环当前窗口/分屏视图的选项卡,你可以使用:
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditorInGroup"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditorInGroup"
}
]
或者,您可以使用Ctrl+PageDown (Windows)或Cmd+Option+Right (Mac)。
窗户
以前的
Ctrl + Shift + Tab
Next
Ctrl + Tab
苹果操作系统
以前的
移位+ Cmd + [
Next
Shift + Cmd +]
更好的方法是使用alt+右和alt+左键导航,就像Jetbrains IDE Webstorm一样
这是我的配置。它还包括创建新文件和文件夹
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
"key": "ctrl+shift+n",
"command": "explorer.newFolder"
},
{
"key": "alt+left",
"command": "workbench.action.previousEditor"
},
{
"key": "alt+right",
"command": "workbench.action.nextEditor"
}
我正在使用这个脚本AutoHotKey
^+WheelUp::
WinGetActiveTitle, originalWindow
WinActivate, ahk_exe Code.exe
Send ^{PgDn}
WinActivate, %originalWindow%
return
这让我可以按住control + shift,使用我的滚轮在VSCode选项卡之间移动,即使是另一个程序。我使用类似的浏览器选项卡和视频控件。
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"
}
]
推荐文章
- 如何设置每个文件类型的标签大小?
- 我如何添加环境变量启动。VSCode中的json
- 如何格式化Visual Studio Code项目中的所有文件?
- Pylint在Visual Studio代码中“未解决的导入”错误
- 如何在VS Code中默认打开文本换行
- 在Visual Studio代码中更改突出显示文本的颜色
- Visual studio代码-键盘快捷键-全部展开/折叠
- Visual Studio Code无法检测已安装的Git
- 禁用Visual Studio代码中的工具提示提示
- Visual Studio Code -将空格转换为制表符
- 在VSCode中的列自动硬换行
- Visual Studio Code:格式没有使用缩进设置
- 如何排除文件扩展名和语言从“格式保存”在VSCode?
- Visual Studio代码- URI的目标不存在" package:flutter/material.dart "
- VSCode——如何设置调试Python程序的工作目录