Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not close an editor tab in eclipse

Tags:

java

eclipse

I remember when I click an editor in Eclipse, there would be a cross or maximize icon in the upper-right corner in the editor tab, as shown in the right RED box in the picture. I do not know what changes I did and could care less as the close icon is no longer there (in the left RED box).

Does anyone have any idea how to restore the close button back? I tried to reset all Perspectives, and clicked left/right buttons, but nothing changed. The Eclipse version is:

Eclipse IDE for Java Developers Version: Mars.2 Release (4.5.2) Build id: 20160218-0600

Screenshot

like image 911
shijie xu Avatar asked Apr 20 '16 19:04

shijie xu


People also ask

How do I close all editors in Eclipse?

First if you use the right click mouse on the tabs you can choose either Close All or Close Others. Second you can press Ctrl + Shift + W to close all the opened tabs.

How do I close the extra Window in Eclipse?

Select Window -> Reset Perspective. That should reset the current perspective (what you call "mode") to its' initial state, (hopefully) closing all irrelevant views.


1 Answers

In the file menu(File>>Close All), click the close All item. Eclipse will close all the existing tabs, when you reopen the code. The close button will come back.

like image 106
user6795954 Avatar answered Oct 09 '22 21:10

user6795954