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


当前回答

当我把窗口分成多个面板时,我发现CTRL+TAB和CTRL+SHIFT+TAB只在一个面板中循环打开文件(而不是所有面板),这真的很烦人。要更改行为,使其在快速打开对话框中循环所有面板,同时保留行为,请将这些添加到您的键绑定:

  {
    "key": "ctrl+tab",
    "command": "workbench.action.quickOpenPreviousRecentlyUsedEditor"
  },
  {
    "key": "ctrl+shift+tab",
    "command": "workbench.action.quickOpenLeastRecentlyUsedEditor"
  },
  {
    "key": "ctrl+tab",
    "command": "workbench.action.quickOpenNavigateNextInEditorPicker",
    "when": "inEditorsPicker && inQuickOpen"
  },
  {
    "key": "ctrl+shift+tab",
    "command": "workbench.action.quickOpenNavigatePreviousInEditorPicker",
    "when": "inEditorsPicker && inQuickOpen"
  }

其他回答

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

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

如果你正在使用VSCodeVim扩展,你可以使用Vim快捷键:

下一个标签:gt 优先标签:gT 编号标签:nnngt

我正在使用这个脚本AutoHotKey

^+WheelUp::
   WinGetActiveTitle, originalWindow
   WinActivate, ahk_exe Code.exe
   Send ^{PgDn}
   WinActivate, %originalWindow%
return

这让我可以按住control + shift,使用我的滚轮在VSCode选项卡之间移动,即使是另一个程序。我使用类似的浏览器选项卡和视频控件。

VSCode 2022

>首选项->键盘快捷键(或Ctrl + K,然后Ctrl + S) 在搜索栏输入“ctrl tab” 替换现有的键绑定(在图片上用红色突出显示)与任何随机 输入“打开下一个编辑器”-将“Ctrl + Page down”替换为“Ctrl + Tab”。 点击“打开以前的编辑器”