visual-studio-code

Uniform widths for all file tabs in VS Code workbench?


I added "workbench.editor.tabSizing": "shrink" to my settings, and while that makes all the tabs fit in on the bar, it doesn't make them equal width. I want them to be equal width so I can quickly close out of them.


Solution

  • Answer for VS Code's May 2023 release

    There's a new value for the workbench.editor.tabSizing option: "fixed". You can find the PR that implemented it here: https://github.com/microsoft/vscode/pull/181729.

    Answer for pre-May 2023 release of VS Code

    Is there a way to make all tabs the same width?

    Apparently not.

    As you can already see, at the time of this writing, there are only two options for workbench.editor.tabSizing, and neither do what you are looking for.

    And googling "github vscode issues tab sizing uniform width", I came across three issue tickets asking for this at various points in time that all got closed:


    In terms of the XY problem here,