VSCode Maximum amount of opened tabs

September 05, 2023

Are you ever stuck with too many windows open in VSCode? Thank god there’s a simple fix for that.

I am definitely one that does not like when I have too many tabs opened that are not really related to what I’m working on at the moment. It makes it a lot harder to keep track of the relevant files, and in general makes it hard to get a quick overview of what I’m doing.

Therefore, whether I’m using PyCharm or VSCode, I like to set up the limit for the amount of tabs that can be opened at once.

Prerequisites

  • VSCode installed

Steps to set VSCode max for opened tabs

  1. Open Settings using CTRL + , on Windows or ⌘ + , on Mac
  2. Search for workbench.editor.limit
  3. At this point, set the workbench.editor.limit.value to the amount of tabs that you want open. I prefer to have it on 5 on a 14-inch Macbook Pro, since otherwise it clutters the window.
  4. Set workbench.editor.limit.enabled to true by clicking it

And from now on, remember to use the ⌘ + P to quickly open new tabs.

Your settings should look something like this:

Visual Studio Code settings for maximum amount of tabs


Profile picture

Written by An anonymous coder who lives and works building useful things. Mostly focusing on Django, Vue and overall Python examples.