简体   繁体   中英

Change to most recently used tab when closing a tab in IntelliJ IDEA?

When I close an editor tab in IntelliJ, the tab that appears directly to the right of it gets opened next. Instead, I would rather have the most recently used tab open instead.

For example, if I have these tabs open:

Foo.java (currently viewed)
Bar.java

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

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

If I then close Baz.java , rather than returning to Foo.java , it goes to Bar.java .

Foo.java
Bar.java (currently viewed)

How can I configure the editor to go back to the most recently used tab?

Go to Settings/Editor/General/Editor Tabs

And select Activate most recently opened tab for the When closing active editor option.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM