eclipse drag editor tabs to re-arrange them - eclipse

My previous install of Eclipse allowed me to drag editor tabs to re-arrange their ordering. For example, if I cloned an editor window and the new tab appeared at the end of the tab row I could drag it to be next to the tab I cloned it from.
I don't know if the ability to drag tabs in my previous install was from a plugin or other modification I installed. To sum up, if I have editor tabs in the order:
TAB-a TAB-b TAB-c
I would like to be able to drag the editor tabs to re-order them:
TAB-a TAB-c TAB-b
I am using Eclipse 4.8, Photon, installed in the past week.
NOTE:
See comment below: it works now, but I don't know what I did to make it work

Related

Is it possible to duplicate the view of the same source file in Eclipse?

I'm doing some manteinance to a .cpp file with eclipse and I need to compare two methods. It's very uncomfortable to jump ahead and back to check differences.
Is there a way to duplicate the view of the same source file, in order to compare them side by side?
Edit the file and use Window > New Editor to open a second editor on the file. Then drag the title tab of the second editor and Eclipse will show on outline of how it is going to arrange the two editors. You can arrange the two editors vertically or horizontally.
Update:
Eclipse 4.4 Luna (currently only available as Milestone builds) adds support for splitting the editor directly using Ctrl+_ and Ctrl+{.

Multiple windows in Eclipse

I work with multiple monitors and I like to use several Eclipse windows and move the editors using drag and drop.
In the last versions (4.2+) I can't make this feature to work again.
For example in Kepler when I drag a editor it appears in a new small window, but without the menus (File/Edit/Run/etc) and toolbars.
How can I make drag and drop to work again like in previous version?
Drag and drop in JUNO
Drag and drop in KEPLER
Its not exactly Drag And Drop, but you can click on Window >> New Window, and you'll have 2 windows with all the options, and you'll be able to open files on both...

Drag and drop tabs in Eclipse

Since Eclipse 3.7 (included) seems that the function of drag and drop editor tabs between eclipse windows has been removed (now the tab is disattached from the windows and its open in a new small window)
Is there any way to recover the previous behaviour?

Aptana on dual monitor with Panels

In Eclipse, I can undock a panel and move it to my other monitor (making it easy to compare two pages at the same time. However, in Aptana, I can split the window's, but it won't let me pull the panel out to my other monitor. Is there a plugin I can install that will allow me to do this?
Update
I have Aptana 3.3.1, and I can detach a panel just fine (the console panel for example), but I want to be able to take a file that is in the editor, and move it to my other screen.
Click Window -> new Window.
You can then close all the unneeded panels in the new window, drag it over to the second screen and drop in your editor(s) there.
Hope that helps!
What version of Aptana are you using? In my 3.3.1, I can detach a panel and drag it to my second screen by right clicking on the panel name and choosing 'Detached' or by just dragging it away from the main window.

How to enable duplicate tabs in Eclipse? (i.e. duplicate windows)

If there's one thing I miss about emacs it's having 4 windows of the same file open, each at a different location in that file, for super quick referencing. Is there a way to get Eclipse to present multiple tabs of the same file?
On the Window menu choose Editor, then Clone (since 4.4.x) or New Editor (earlier versions). You can then drag the title bar around to get side-by-side views.
Another way would be to split the code editor view twice
But this will only be possible with Eclipse Luna 4.4 M4, as detailed by Lars Vogel in "Split editor implemented in Eclipse M4 Luna", in Bug 8009:
The split editor functionality has been developed in Bug 378298, and will be available as of Eclipse Luna M4. The Note & Newsworthy of Eclipse Luna M4 will contain the announcement.
Current shortcut for splitting is:
Ctrl + _ for split horizontally, and
Ctrl + { for split vertically.
Depending on your keyboard layout:
Andrew adds in the comments that you can need Ctrl + Shift .
el-teedee mentions (also in the comments) that, when pressing CTRL+{ in my Javascript editor, it inserts ''.
To fix this, I need to press CTRL+ALTGR+{ (Linux Ubuntu French keyboard),
Yeah, just right-click on the editor tab you want, and select "New Editor". It'll create a new tab editing the same file. You can then drag this new tab to the left or right edge of the view to get them in a "split screen" state. It's really very flexible.
I figured it out. Right-click tab > New Editor.
Other answers explain how to open multiple editors or split editor. If we are talking about other tabs/views that are not editor, it depends on the implementation.
TLDR: search for pin toggle or create new view button/option in view!
History view, Search view and other pinnable tabs - have "Pin this XXX View" toggle:
If you pin it it will keep the content and new Search (or history show) will show in new history view.
History view also has "Reuse Compare Editor" option so compares can be opened in same or separate tabs:
Markers view has option "New Markers View":
This view can be named and you can set custom filter for each view.
Similar is "Terminal View" that has button to open new terminal view:
Some tabs do not have any option to be duplicated. Tested with Eclipse 2019-12 (4.14.0)
I faced similar problem, but not with the main edit tabs: I wanted to have duplicate tabs in additional view panel (exactly: two junit views to compare different test runs).
In my case the only possible way to achive such thing was creating separate window: Window > New Window and openning new view there.
p.s. I'm using eclipse kepler 4.3.1.
For eclipse kepler , you can try right-click > open-with > any other like text editor
select window menu, then editor option, then clone