当前的功能是给我一个下拉选项,选择哪个选项卡是如此烦人。是否有可能删除它,使标签将像在一些现代网络浏览器。
当前回答
窗户
在Windows上使用Visual Studio Code时,可以使用CTRL + PAGE_UP切换到上一个选项卡,CTRL + PAGE_DN切换到下一个选项卡。
您还可以根据选项卡的(非零相对)索引切换到选项卡。你可以按住ALT键,再加一个数字(1到9)。
操作系统
要在选项卡之间快速导航,请按住CMD键,然后按下要切换到的选项卡的数字(1到9)。
您还可以通过CMD + ALT +左/右键盘快捷键在上一个/下一个选项卡之间切换。
请注意,要切换到不同编辑器组中的选项卡,必须首先切换到所需的编辑器组。
专业提示:如果您不喜欢任何一个键绑定,您可以将它们更改为您觉得更舒服的任何键绑定!
其他回答
linux……我使用ctrl+pageUp或pageDown
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"
}
]
你可以这样做: 1.)打开vscode。 2.)按ctrl+k+s(按写好的顺序)。 3.)在搜索栏中输入以下内容:nextEditorInGroup按下第一个传入和键绑定它(由2按下)alt+->(右errow)。 4.)做同样的prevEditorInGroup和键绑定它到alt+<-(左errow)。 5.)现在你可以通过alt+左或alt+右传递标签!
Vim用户可能会发现这些键绑定在组和组内窗口之间切换很自然:
{ "key": "ctrl+j", "command": "workbench.action.nextEditorInGroup" },
{ "key": "ctrl+k", "command": "workbench.action.previousEditorInGroup" },
{ "key": "ctrl+h", "command": "workbench.action.focusPreviousGroup" },
{ "key": "ctrl+l", "command": "workbench.action.focusNextGroup" }
如果您想在编辑器组之间循环时包含终端,请参阅此答案
更好的方法是使用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"
}
推荐文章
- 在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代码-键盘快捷键-全部展开/折叠