Switch to last used tab when closing tab in IntelliJ IDEA?

When I close the editor tab in IntelliJ, the tab that appears right to the right of it opens further. Instead, I would rather use the last tab instead.

For example, if I open these tabs:

Foo.java (currently viewed)
Bar.java

And then I use CMD + SHIFT + N to open Baz.java, now it looks like this:

Foo.java
Baz.java (currently viewed)
Bar.java

If you then close Baz.java, and not return to Foo.java, it will be Bar.java.

Foo.java
Bar.java (currently viewed)

How to configure the editor to return to the last tab used?

+4
source share
1 answer

Go to Settings / Editor / General / Editor Tabs

.

enter image description here

+5

All Articles