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
- Open Settings using
CTRL + ,
on Windows or⌘ + ,
on Mac - Search for
workbench.editor.limit
- 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. - Set
workbench.editor.limit.enabled
totrue
by clicking it
And from now on, remember to use the ⌘ + P
to quickly open new tabs.
Your settings should look something like this: