Any tips on how to organize Eclipse environment on multiple monitors?
Asked Answered
C

7

177

I can't find a good way of putting Eclipse windows on two monitors. Currently I just detached (clicked on a header and dragged) a few windows to a secondary monitor (package explorer, console, and outline) while leaving primary monitor with maximized source editing window.

It works pretty well except few annoying issues. Detached windows are not in focus while you are editing your code. Which means that, for example, last build shortcut (Alt-Shift-X, Q) doesn't work because it can't find build file (because package explorer is not in focus). Also "Selected resources" option in a file search menu is not picking up current package selection.

So I was wondering is detaching windows a right way to go? Do you have any better solutions so at least package explorer stays in focus?

Thanks.

PS. Btw "unable to find build" error started showing up only in 3.4 ver for some reason.

Cryptograph answered 25/11, 2008 at 21:29 Comment(0)
H
270

In the Eclipse Helios (currently 3.6.2) I found very useful the use of another window to bring up multiple documents in different screens. in the main menu, go:

Window > New window,

and drag it to the screen you prefer. Double click in the filename on the editor and will maximize the editor's window.

I hope i helped.

Kyr.

PS: If you want to maintain both windows when you closing Eclipse, don't close them one by one. Instead go: File > Exit.

Hayward answered 11/5, 2011 at 8:26 Comment(3)
Thanks for the tip and +1. However, the windows don't "communicate", e.g. javadoc view in one window won't be updated by selections in the other, similarly jUnit.Plough
@Plough My only experience in eclipse comes from CDT and what you are saying is also correct in CDT. Nevertheless if you select a variable in one window, the same variable is highlighted by indexer in the other window. The same applies to other global operations such as refreshing the explorer etc...Hayward
One problem with this is that the new window does not have the original windows settings, and (I believe) if you close it last it will reset Eclipse's settings to the last closed window. I only did this one then switched to maximizing Eclipse across two monitors and splitting the code window into two, one for each monitor.Oneupmanship
N
12

I use Ultramon to spread my Eclipse across two monitors.

I have the left hand side devoted to the code and the right hand side to the Project Explorer, Search, Console, Ant and Outline views.

This way I get focus to all of my Eclipse stuff when I click on it in the taskbar or alt-tab. I can also overlay another window (usually my browser or a trace viewer) on the right hand monitor. I use SemTop to pin the overlayed window if I want to code and read some reference at the same time (This is where shortcuts keys come in handy).

So I can look at code and StackOverflow at the same time ;)

Ultramon

Nonesuch answered 25/11, 2008 at 22:6 Comment(7)
Could you provide a link to ultramon?Manganite
There's a freeware alternative for SemTop I like: DekspinsThrow
@Throw - I've actually started using an AutoHotkey script instead.Nonesuch
This is exactly what I used to do in Visual Studio, use Ultramon to maximize the IDE to both monitors (functionality even Windows 7 still lacks to my knowledge, please correct me if I am wrong) and then split the source section in half, manually making the split align with the monitor split. The split matching the split in monitors would break whenever a section within the IDE would change size automatically, which happens. Would love native dual monitor support.Oneupmanship
@MatthewDoucette - Now I'm a .NET developer, I do exactly the same with Visual studio. Basically just replicated my Eclipse setup.Nonesuch
@Feet, curious why you do not split the code window across both monitors? I have always found it better to have two code windows open.Oneupmanship
@MatthewDoucette, not sure really? Just separated the code and code navigation onto the main window and everything else on the other. No other reason than preference if I had to give a specific reason.Nonesuch
E
4

I split the eclipse environment over two monitors (both running at 1600*1200)

on the left I have the main coding window maximised with the outline down the right hand side.

On the second monitor I have the Junit window, Problems, Console and the package explorer

I have the same layout duplicated for all the perspectives that I use.

I have never used the Alt-Shift-Q short cut but I have found the Alt-Shift-X, T shortcut for running junit works fine when I am focussed in the main coding window .

Possibly have the package explorer on the same monitor as the coding window?

Extramural answered 25/11, 2008 at 21:52 Comment(1)
By "split" do you mean two Eclipse windows or one maximized across two monitors?Oneupmanship
D
2

I have a widescreen primary monitor and a non-widescreen secondary monitor. The layout on my primary monitor is broken into three columns: column 1 contains the package explorer in the top half and the outline, hierarchy and search results views in tabs on the lower half. Column two is code, and is about two and a half times wider than the other two columns. (Since everybody has widescreen monitors at my office, we've standardized on 100-character lines instead of 80.) The third column has the debug view at the top, somewhat small; the variables, expressions and JUnit views in tabs below that, taking most of the vertical space; and a small breakpoints view below that. My secondary monitor has two torn off windows: the console takes up most of the screen, and below it I have a smaller window containging the problems and history views in tabs.

My only gripe is when I remote desktop in from my single-monitor setup at home: the two windows on the secondary monitor move over to the primary one. I have a "One Screen" perspective which I use in this scenario to rectify that, but when I'm back at work and switch to the dual-monitor perspective, I have to manually move the windows back over to the other monitor. I wish Eclipse would just leave them over there, but I can't see any way to make it do that.

Dolomite answered 7/8, 2009 at 15:45 Comment(0)
B
2

I have my Package Explorer and Code on my primary monitor and the Console on my secondary monitor. I do this by right clicking over console tab and selecting Move.. then View. This way I am able to drag, drop and resize the console window.

Hope this helps!

Blowzed answered 7/3, 2012 at 13:10 Comment(0)
M
2

I did this by extending my eclipse to both monitors, in windows you can make your screens extended by holding win key and tapping P,

enter image description here

Then, selecting my left monitor as the main one I dragged the right side of the eclipse window to cover the other screen all the way. then made eclipse into three columns. Now my main monitor is dedicated to code editor and console and package explorer are on the other one! when you have a whole monitor for your code it always helps to use cntrl+{ and have a second vertical column for viewing the same file, or dragging the tab of another file to the side of screen to view both in the same time. enter image description here

Finally I just saved my work from window > save Perspective As

I can switch between my normal and dual monitor perspective whenever I'm not in the office

Merganser answered 31/1, 2015 at 13:33 Comment(3)
The idea seems good. But if you have one laptop and one monitor with very different resolutions the result will be weird.Corporeity
@borjab, right. In that case just drag the tab of the second window to the other monitor, It will create two separate windows with different sizes and the rest would be the same.Merganser
I finally did that. One window just for code maximized. Other for Junit, server, console, package explorer. The experience is betterCorporeity
A
1

I've reduced (but not eliminated) the need for the package explorer to always be showing by using Ctrl+Shift+R in eclipse, this pops up a filter-as-you type window that makes switching between files which you remember the name of easy, as well as accepting wildcards to make it easy to find files you partially remember the name of.

I keep source on my main screen and outline tasks and LogCat (android) on my secondary screen, if I find i'm reading a lot of web content i fire up my laptop via synergy as an independent third screen, it's not ideal but it works.

Allerus answered 18/3, 2013 at 12:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.