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

我与影子孤独终老i 提交于 2019-12-12 09:37:18

问题


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?


回答1:


Go to Settings/Editor/General/Editor Tabs

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



来源:https://stackoverflow.com/questions/28354825/change-to-most-recently-used-tab-when-closing-a-tab-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!