Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Close tabs to the right

Is there a plugin or some way to get a behaviour of close tabs to the right, like the chrome browser?

Close others allows you to keep only one single file open afterwards.

Close tabs to the right is essential, as it allows you to place files that are important on the left side, and then whenever you open tabs, you can still keep those that are important when closing the others, the right ones.

like image 692
mjs Avatar asked Oct 04 '12 07:10

mjs


People also ask

How do I close all open tabs in eclipse?

With Ctrl + W we can close opened tab. With Ctrl + Shift + E we can select which files we want to close.

How do I change indentation in Eclipse?

You can use Ctrl + A to select the entire file, then use this shortcut to quickly fix all the indentation. You can also change how Eclipse handles indentation by going to Window > Preferences, then in the left panel, navigate to Java > Code Style > Formatter > Edit... > Indentation.

How do I close a second window 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 pin a tab in eclipse?

This is a very old thread but in Eclipse 4.6. 3 in order to get the pin icon in the toolbar you need to check the "close editors automatically" option (Preferences -> General -> Editors).


1 Answers

I don't think there's a plugin for that.

As an alternative, you could do CTRL+SHIFT+E to bring up the "Switch to Editor" dialog. From there, you could select all the editors to the "right" of your active tab and click Close Selected Editors to close them. It's not as fast as what you wanted but it lets you organize your tabs the way you want to (i.e. important tabs to the left).

like image 122
Jensen Ching Avatar answered Oct 10 '22 06:10

Jensen Ching