tags:

views:

220

answers:

4

Once you have a bunch (20+) source windows open in Eclipse is there way to close them with clicking all the close buttons on the tabs? It takes a long time and if you double click the middle button it maximises the window instead.

I guess worst case I'll learn to write a plugin that just closes them all, but ideally I want a little list box that I can easily close them in, like the buffer list in emacs or the window list in devstudio.

+2  A: 

Right click one of the source tabs, then click "Close all". This is in Eclipse 3.4, don't know what version it was first available in.

Kaleb Brasee
holy crap, that's embarrassingly obvious
justinhj
LOL, I do the same thing from time to time with different programs. "How do I do this??? Oh, yeah, right click, it shows a whole set of commands..."
Kaleb Brasee
Ctrl+Shift+W is the short cut key for close all. Ctrl+w closes the current editor.
Andrew Niefer
Or Ctrl+Shift+F4 for close all and Ctrl+F4 to close current
Rich Seller
+1  A: 

Beside the "Close All" functionality kbrasee mentioned you can work with a "buffer list" using Window / Navigation / Switch to Editor (or Ctrl+Shift+E). In this dialog you can select multiple editors for saving / closing.

Csaba_H
Also nice thanks. I couldn't find this option when browsing the window menu because I'm not in tune with Eclipse's terminology yet. To me, an editor is not a window, and "switch to editor" does not sound like a a way to manage a list of windows. Thanks again.
justinhj
+1  A: 

For a fast and selective solution you can click with the mouse wheel (yes!) into the middle of a tab you want to close. You don't have to target the close X.

powtac
A: 

Maybe this is a little bit unrelated to your question but you can limit the number of open files by selecting "Window > Preferences > General > Editors > Number of opened editors before closing". If you set it to 8, opening the 9th file will close the file you visited most early.

kyku