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


当前回答

这个功能现在在vscode中默认使用alt而不是ctrl:

其他回答

macOS - 2017 年修订版

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

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

默认情况下,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)。

使用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 在当前的Vscode 1.44.1版本中

我们可以使用ctrl+pageup作为下一个编辑器 Ctrl +下拉查看以前的编辑器。

如果有改变的必要

ctrl+shift+p >首选项:打开键盘快捷键。

搜索

nextEditor

如果需要更改,请单击它。

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