如何在 VS Code 中固定固定选项卡?

Sno*_*ash 8 visual-studio-code

我正在使用 VS Code,并认为固定选项卡将保留在其固定位置(它是左上角的选项卡)。

但是,如果我打开更多选项卡并开始切换到这些选项卡,我固定的选项卡就会消失在左侧某处。

我如何将其固定到位?

Ful*_*der 2

您可以在“设置”中编辑“工作台 > 编辑器:换行选项卡”设置

\n
    \n
  1. 打开设置

    \n
      \n
    • Ctrl+ , (comma)( Mac 上为command \xe2\x8c\x98+ , (comma)),或按\n
        \n
      • Shift+ Control+ PShift+ command \xe2\x8c\x98+P在 Mac 上)
      • \n
      • 输入“用户设置”
      • \n
      • 单击“首选项:打开设置”
      • \n
      \n
    • \n
    \n
  2. \n
  3. 然后在设置中:

    \n
      \n
    • 在搜索中输入“换行标签”
    • \n
    • 单击“工作台>编辑器:换行选项卡”复选框
    • \n
    \n
  4. \n
\n
\n

或者,直接在settings.json中添加以下行:

\n
    \n
  • “workbench.editor.wrapTabs”:true
  • \n
\n
\n

您可以使用以下快捷键固定当前选项卡:

\n
    \n
  • 视窗: Ctrl+ K, Shift+Enter

    \n
  • \n
  • 苹果电脑command \xe2\x8c\x98+ KShift+Enter

    \n
  • \n
\n

或者,右键单击选项卡的标题,然后从下拉菜单中选择固定

\n