How do I keep IntelliJ from closing my Editor Tabs automatically?

Heather92065 picture Heather92065 · Mar 1, 2016 · Viewed 15.6k times · Source

When opening more than 10 Editor Tabs, IntelliJ automatically closes my least used Tab each time I open a new Tab.

How can I increase this limit?

More recent IntelliJ settings are accessed differently than older versions.

Answer

Heather92065 picture Heather92065 · Mar 1, 2016

Change the Tab Limit under the Tab Closing Policy settings.

Open your IntelliJ settings: Select File -> Settings -> Editor -> General -> Editor Tabs.

Look for Tab Closing Policy -> Tab Limit and change the value to a higher integer.

You can also select to either close non-modified files first or less frequently used files first once your tab limit has been reached.

enter image description here