Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse settings for editor tabs

Java class editing - In IntelliJ I am able to set preferences so only one editor tab at a time is open. I use command-O to type in the next class and only one tab stays open.

In STS (eclipse), I would like cntl-shift-R to open a new class and not leave the last class tab editor open. Only one editor tab stays open is my preference.

To be clear, I have searched extensively through the Eclipse doc and Googled for it, but I just can't find the right setting reference.

Any ideas?

like image 247
user3524037 Avatar asked Nov 30 '25 11:11

user3524037


1 Answers

Eclipse has an option to automatically close non-dirty editors. Find it in the Preferences under General > Editors, the setting is labeled Close editors automatically.

enter image description here

When you enable that, you can choose the max number of editor tabs to keep open; to satisfy your need, set it to 1.

The Help docs for that are here.

like image 105
E-Riz Avatar answered Dec 03 '25 07:12

E-Riz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!