Search code examples
intellij-idea

IntelliJ IDEA current file tab closes on opening a different file


Every time I open a new file (single click), the existing file closes by itself. It started happening in the latest version. How do I fix this?


Solution

  • In the Project tool window, click the three vertical dots and uncheck Enable Preview Tab option (which is on by default)

    enter image description here