4

I'm using VS Code and thought a pinned tab would remain where it was pinned (it was the top left tab).

However, if I open up a bunch more tabs and start tabbing to those, my pinned tab disappears off to the left somewhere.

How do I pin it in place?

Snowcrash
  • 80,579
  • 89
  • 266
  • 376
  • Does this answer your question? [Open files always in a new tab](https://stackoverflow.com/questions/38713405/open-files-always-in-a-new-tab) – Otto Apr 12 '23 at 10:30

1 Answers1

1

You can edit "Workbench > Editor: Wrap Tabs" setting in the Settings

  1. Open Settings:

    • Ctrl+, (comma) (command ⌘+, (comma) on Mac), or by
      • Shift + Control + P (Shift + command ⌘ + P on Mac)
      • Type "user settings"
      • Click on "Preferences: Open Settings"
  2. Then in the Settings:

    • Type "wrap tabs" in the search
    • Click on the checkbox for "Workbench > Editor: Wrap Tabs"

Alternatively, add the following line directly in the settings.json:

  • "workbench.editor.wrapTabs": true

You can pin the current tab with the following key shortcut:

  • Windows: Ctrl + K, Shift + Enter

  • Mac: command ⌘ + K, Shift + Enter

Or, right-click on the title of the tab, then select Pin from the drop-down menu

FullStackCoder
  • 420
  • 4
  • 6