23

I want to pin editor tabs enter image description here
Is there any plugin for that ?

Visual Studio has this property. enter image description here

akdora
  • 893
  • 1
  • 9
  • 19

3 Answers3

27

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).

Preferences Window

Editor Window

Paul Vargas
  • 41,222
  • 15
  • 102
  • 148
fadam
  • 416
  • 4
  • 3
6

In Eclipse 4.4.0 there You'll find a pin symbol in the default toolbar of Eclipse on the right side. After clicking it, the Java Editor Tab symbol gets changed indicating this editor is pinned now. Unfortunatelly I could not find a corresponding entry in the popup menu. But it is easy to assign e.g. the keys Ctrl-P to "Pin Editor" in the key bindings of Eclipse. (Don't forget to unbind Ctr-P = Print)

Update August 2016: In Eclipse Neon 4.6.0 Pin is not functioning as I can see, no symbol indicating a pinned editor/tab.

Hartmut Pfarr
  • 5,534
  • 5
  • 36
  • 42
  • 2
    so i have just downladed latest Eclipse, set Ctrl+P to (only) Pin Editor, but i see no effect whatsoever anywhere :D – Jaroslav Záruba Jan 28 '16 at 09:17
  • Jaroslav, You open a source code in the editor, then press Ctrl-P, and in the very small filename (tab header) field of the editor there you toggle a small pin symbol - if not, I am wondering... – Hartmut Pfarr Feb 02 '16 at 00:34
  • yes, i had to play with toolbar (and their buttons) visibility, by default i could not see the button... sadly the whole Pin thing is missing the "Close all but pinned" part :) – Jaroslav Záruba Feb 02 '16 at 10:33
  • 2
    i miss "Close all but pinned" too - at least the auto-close function ("before opening more than x editors auto-close one") respects the pinned ones :) but overall it his "half cooked" I muss confess – Hartmut Pfarr Feb 02 '16 at 17:28
3

Try this eclipse plugin.

Animated example. Its not working on Linux. If you are using Windows then this may help.

Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68