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


当前回答

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

其他回答

苹果操作系统

前置标签:Shift + Cmd + [

下一选项卡:Shift + Cmd +]

Mac OS(可选)

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

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

窗口:

上一页:Ctrl + Shift + tab

下一个选项卡:Ctrl + tab

Linux / Windows(可选):

上一页:Ctrl +下一页

下一个选项卡:Ctrl + Page Up

linux……我使用ctrl+pageUp或pageDown

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

macOS - 2017 年修订版

在2017年,VS CODE键盘快捷键已更改为CTRL+1, CTRL+2,CTRL+3等,以切换制表符。

CMD+1、CMD+2和CMD+3在制表符组之间切换并创建制表符组

这也适用于MAC OS:

按下选择特定的Tab: Control + 1或Control 2, Control 3等。

按下显示/选择所有可能的选项卡:Control + Tab。