chris
chris

Reputation: 133

eclipse single tab for navigating through java classes

Is there any way to configure Eclipse such that when I am in one file (Java class in my case) and I f3 into another class, to prevent it from opening in a new tab? I am ending up with a bagillion different tabs. I want the new file to appear in the tab where the old on was (think replace)

Upvotes: 0

Views: 566

Answers (1)

Marvin
Marvin

Reputation: 14415

You can achieve this by enabling "Close editors automatically" while also limiting the "Number of opened editors before closing" to 1. It's technically not one single tab because a new editor is opened, but it should still fit your needs.

See "Preferences > General > Editors":

screenshot of preference page

If you want certain editors to still be kept open, you can pin them via the new toolbar icon that appears after checking above setting:

enter image description here

(Version: Eclipse Mars.2)

Upvotes: 1

Related Questions