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?
Related
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
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...
In Eclipse Juno if I edit a Java file in a maximized Java Editor and run a unit test the JUnit View shows up in a floating window.
The Java Editor remains active and the JUnit View hides half of my screen. How can I hide the JUnit window with keyboard shortcuts?
I've used Juno Service Release 1, Build id: 20121004-1855 and it's the same with Juno Service Release 2, Build id: 20130225-0426.
I went the other way round - using keyboard shortcut to activate editor.
The default is F12, which I found too far to move my lazy finger to.
Instead, I rebound it to Ctrl + ;. Its very easy to reach out, and there is no other eclipse shortcut bound to this key combo (at least in my setup).
Please make sure you are on Juno SR1. There were some fixes in SR1 related to floating windows. For me the JUnit window simply vanishes by hitting Esc or by focusing the editor again.
To ease your pain, maybe you also want to check "Activate on error/failure only" in the view menu of the JUnit view.
Bug 391808 was reported about the Fast View not collapsing when clicking in the Java Editor. I just commented with this particular reproduction of the problem. I see the same issue as you working with Juno SR1. I have to actually click in the JUnit view before pressing Esc will work.
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:
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