Shortcut to close all tabs except pinned one in Eclipse

17,114

Solution 1

Press CTRL+Shift+E and you will get the Switch to Editor view as shown below.

Switch to Editor View

Now use the keys Up or Down to select the tab which you want to stay opened and press the Tab key two times so that the button Invert Selection is focused. Then press the Enter and two times Tab key. Hit the Enter key again to close all other tabs in editor.

Solution 2

If you right click on your window there is an option "close others" it should work for you,

If you want a shortcut for it its simple to create one, go to >Window > Preferences > General > Keys , search for "close others" then in the Binding filed enter any shortcut key you want, and in the when dropdown; select "In Windows", then apply, OK , Finish.

Share:
17,114

Related videos on Youtube

tomrozb
Author by

tomrozb

Android, Flutter, GCP, Blockchain

Updated on October 09, 2022

Comments

  • tomrozb
    tomrozb over 1 year

    I'm wondering if Eclipse has any shortcut to close all tabs except the pinned one. I use the CTRL+Shift+W shortcut every day to close current tabs but it closes all the tabs no matter they were pinned or not. Do Eclipse have any settings for this shortcut to close only not pinned tabs, or does exist another shortcut to achieve such result?

    Edit: I forgot mention I use Eclipse Indigo.

  • tomrozb
    tomrozb about 11 years
    I already know about this option, but it still closes pinned tabs. It doesn't close only the current tab which is not sufficient for me. +1 for you :)
  • Elye M.
    Elye M. about 11 years
    What do you mean pinned tabs?
  • tomrozb
    tomrozb about 11 years
    Maybe I've used the wrong word - I mean editor. On the top bar you probably have a button with "Pin the current editor" tooltip. You can pin editors so they wouldn't be closed if you reach the limit of the opened editors (General->Editors->Number of opened editors before closing).
  • Jean-François Savard
    Jean-François Savard over 8 years
    Instead of "two tabs + enter" two times, you could do alt + i and alt + c.