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


当前回答

使用Sublime文本键图。更直观了。

⌘k⌘m

导入Sublime文本键图:

Name: Sublime Text Keymap and Settings Importer
Id: ms-vscode.sublime-keybindings
Description: Import Sublime Text settings and keybindings into VS Code.
Version: 4.0.3
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.sublime-keybindings

其他回答

在Linux/Windows上使用Visual Studio Code时,可以使用CTRL + PAGE_UP切换到上一个选项卡,CTRL + PAGE_DN切换到下一个选项卡。您还可以根据选项卡的(非零相对)索引切换到选项卡。你可以按住ALT键,再加一个数字(1到9)。

更多详情请点击这里

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 1.45(2020年4月)

使用鼠标滚轮切换标签 当您使用鼠标滚轮滚动编辑器选项卡时,您目前不能切换到选项卡,只能显示在视图之外的选项卡。 现在有了一个新的设置workbench.editor.scrollToSwitchTabs,如果你把它改成true,这个行为就可以改变。 注意:你也可以在滚动时按住Shift键来获得相反的行为(即你可以切换到标签,即使这个设置被关闭)。

窗户

以前的

Ctrl + Shift + Tab

Next

Ctrl + Tab

苹果操作系统

以前的

移位+ Cmd + [

Next

Shift + Cmd +]

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

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