Are you ever stuck with too many tabs open in WebStorm? 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.
The setting is the same as in PyCharm, since both are JetBrains IDEs. If you also use VSCode, here’s how to do it there.
Prerequisites
- WebStorm installed
Steps to set WebStorm max for opened tabs
- Open Settings using
CTRL + Alt + Son Windows or⌘ + ,on Mac - Search for
Tab limit - Open
Editor -> General -> Editor Tabs - Set the
Tab limitto 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 the
When the number of opened tabs exceeds the limitto whichever option you want.Close non-modified files firstis a good default.
And from now on, remember to use ⌘ + Shift + O (CTRL + Shift + N on Windows) to quickly open files.