当前的功能是给我一个下拉选项,选择哪个选项卡是如此烦人。是否有可能删除它,使标签将像在一些现代网络浏览器。


当前回答

你可以这样做: 1.)打开vscode。 2.)按ctrl+k+s(按写好的顺序)。 3.)在搜索栏中输入以下内容:nextEditorInGroup按下第一个传入和键绑定它(由2按下)alt+->(右errow)。 4.)做同样的prevEditorInGroup和键绑定它到alt+<-(左errow)。 5.)现在你可以通过alt+左或alt+右传递标签!

其他回答

更好的方法是使用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" 
    }

有多种方法可以切换选项卡。

基于位置的现代浏览器方式。

{
       "key": "ctrl+tab",
       "command": "workbench.action.nextEditor"
   },
   {
       "key": "ctrl+shift+tab",
       "command": "workbench.action.previousEditor"
   }

最近排序

{
   "key": "ctrl+shift+tab",
   "command": "workbench.action.openNextRecentlyUsedEditor"
 },
 {
   "key": "ctrl+tab",
   "command": "workbench.action.openPreviousRecentlyUsedEditor"
 }

@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]聚焦编辑器组!希望这个答案对你有帮助。

苹果操作系统

前置标签:Shift + Cmd + [

下一选项卡:Shift + Cmd +]

Mac OS(可选)

上一页选项卡:Cmnd+Alt+←

下一个选项卡:Cmnd + Alt + →

窗口:

上一页:Ctrl + Shift + tab

下一个选项卡:Ctrl + tab

Linux / Windows(可选):

上一页:Ctrl +下一页

下一个选项卡:Ctrl + Page Up

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" }

如果您想在编辑器组之间循环时包含终端,请参阅此答案