Eclipse - How to pin editor tabs? - eclipse

I want to pin editor tabs
Is there any plugin for that ?
Visual Studio has this property.

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

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.

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

Related

When opening java files in Eclipse Juno, the editor seems to be minimised or hidden

I've installed Eclipse Juno SR1 and switched to my old workspace. When I open a java file in the editor, it seems to be minimized (or hidden). The titlebar shows the current file and the outline displays all methods.
This is much as described in the Eclipse Invisible Editor, however, the suggested solution 'Window > Reset Perspective' does not work for me.
Any ideas on how I can get the editor back in the window?
I have the same problem with previous version of Eclipse Juno (not SR1).
"Windows" -> "New Window" seems to bring back the invisible editor view.
Then just close the old one and restart eclipse to make sure it "remembers" the configuration.
Try Window > Reset Perspective to get things back to normal.
There are times when the editor or other views starts behaving erratic. For such situations do:
"Windows" -> "New Window".
Close the old one.
I had this problem in STS and then it contaminated my regular Eclipse in the same workspace. "New Window" helped, thanks!
You don't need to restart eclipse.
Just double-click your file inside the Package Explorer view. You will see it's name in the title bar, but it won't appear in the editor:
Now, just type Ctrl + w (in case of Windows).
Reopen your file, and it will appear in the editor:

hiding the editor window form a perspective in eclipse

Once and for all, ban the editor (source code editor) windows from mingling my 'DDMS' perspective. How to do that ?
EDIT:
Eclipse IDE for Java Developers
Version: 1.2.2.20100216-1730
Build id: 20100218-1602
with the only available updates being for Mylin and Android something
You can minimize the editor area using a button in the top-right corner of the editor area. That let's you see that it's minimized in the window frame (along the right side) and easily Restore it.
Alternatively, you can set up a keyboard shortcut to really toggle the editor area visibility. Open the Preferences and navigate to General > Keys (or press Ctrl/Cmd + Shift + L twice to jump right to the Keys preferences). Search the commands for area and then assign a keyboard shortcut to the Toggle Editor Area Visibility command. Note: for older versions of Eclipse (3.5 and older), the command is named Hide Editors.
There is no way to permanently remove the Editor Area from a Perspective; that's fundamental to how Eclipse is designed.

How to show the hidden toolbar of Eclipse

Eclipse has a context menu item to hide the entire toolbar of RCP.
Where is the corresponding menu item to show the hidden toolbar?
I know it should be shown if using a new workspace. However I hope find the related feature in the GUI of eclipse.
Use the Window menu, you have a "Show toolbar" option there.
I'm on Mac OS X, and one thing I always forget about is the stupid lozenge button in the upper right corner of the window. I hit this by accident and was going nuts trying to figure out where my toolbar had gone until I (experimentally) hit it again.
I tried one solution here and worked for me. If you can not reset or change something from eclipse GUI, Go to your project folder eg. "Workspace". Delete folder ".metadata". Now open eclipse again and browse "Workspace". Import your projects from the "Workspace". It will reset eclipse to default.
In eclipse oxygen version it is available under
Windows --> Appearance --> Show Toolbar

How do I activate word wrapping in text editor in Aptana Studio?

How do I activate line wrapping in text editor in Aptana Studio?
I'm interested about wrapping in view mode (in order to not have to do horizontal scrolling).
Tried right-clicking within the editor and selecting ‘word wrap’ from the context menu?
On Main Menu click "Window" choose "Preferences". In left-side list, click "Aptana Studio". An alphabetical list on right side will show. Select "Editors" then check "Enable word wrap (requires restart)".
It seems to work on the latest version of Aptana as well. Here are some screenshots of where you can find such option.
I'm using Aptana Studio 3 and you can right click anywhere in the code and select Word Wrap which should be the second last option.
I'm using Aptana Studio 3, build: 3.4.2 and found that 'word wrap' can be change with in editor from context menu, BUT only if the mouse are on line number field! If the mouse is on text editor the option 'word wrap' missing. This change only setting for current opened file. It will be good to change default option !
Window > Preferences > Aptana > Editors...
Actually click on the word "Editors", you don't need to click the "+" symbol next to it. Once that loads, go to the "Advanced" tab, and you should see the option you're looking for to enable word wrap.
Found that here.
http://forums.aptana.com/viewtopic.php?f=14&t=7482
Once you restart, you should be good to go.

IntelliJ IDEA equivalent of Eclipse "Link with Editor"

In Eclipse you can check the "Link with Editor" option and whatever source file you are viewing in the current tab will be highlighted and have its package expanded in the Package Explorer view.
Is there something equivalent to this in IntelliJ IDEA 8.1?
At IntelliJ IDEA 12 (13, 14 and 15 from comments), it is located at the gear icon into the "Project" Tool Window, called as our mate said, Autoscroll from source
check the image
I hope this can helps someone else :)
Update (2020, eleven years later): see "Source code navigation / Locate a file in the Project tool window"
In the Project tool window, right-click the Project toolbar and, from the context menu, select Always Select Opened File.
After that IntelliJ IDEA will track the file that is currently opened in the active editor tab and locate it in the Project tool window automatically.
Original answer (2009)
That would be : Autoscroll from Source.
Navigate from a file in the Editor that gets the focus, to the corresponding node in the Project Tool Window.
Fried Hoeben comments that
you get there from the config of the project tool window.
It is not present in the general IDE settings (at least in version 12)
In version 2016.3, it's a little icon on the Project Tool Window called Scroll from Source. It's the first icon on the right see screen shot
Right click on the Project Title bar (Project view). Then select the Option "Autoscroll from Resource".
In Intellij 2019.3 community editor, it is to right-click on the Project view and check the item "Always select opened file.
Solution to IntelliJ IDEA 2022.2.4 (Community Edition)
Click on Show Options Menu and select Always Select Opened File