关于如何在多个显示器上组织 Eclipse 环境的任何提示?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/318940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Any tips on how to organize Eclipse environment on multiple monitors?
提问by serg
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.
我找不到将 Eclipse 窗口放在两个显示器上的好方法。目前,我只是将几个窗口分离(单击标题并拖动)到辅助监视器(包资源管理器、控制台和大纲),同时保留具有最大化源编辑窗口的主监视器。
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.
除了一些烦人的问题外,它工作得很好。编辑代码时,分离的窗口不在焦点上。这意味着,例如,上次构建快捷方式 ( Alt- Shift- X, Q) 不起作用,因为它找不到构建文件(因为包浏览器不在焦点中)。文件搜索菜单中的“选定资源”选项也没有选择当前的包选择。
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.
附注。顺便说一句,由于某种原因,“无法找到构建”错误开始仅在 3.4 版中出现。
回答by Kyr
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:
在 Eclipse Helios(当前为 3.6.2)中,我发现使用另一个窗口在不同屏幕中显示多个文档非常有用。在主菜单中,转到:
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.
PS:如果你想在关闭Eclipse的时候两个窗口都保持,不要一一关闭。而是去:文件>退出。
回答by Feet
I use Ultramon to spread my Eclipse across two monitors.
我使用 Ultramon 在两台显示器上传播我的 Eclipse。
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.
我的左侧专门用于代码,右侧用于 Project Explorer、Search、Console、Ant 和 Outline 视图。
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).
这样,当我在任务栏或 alt 选项卡中单击它时,我会专注于我的所有 Eclipse 内容。我还可以在右侧监视器上覆盖另一个窗口(通常是我的浏览器或跟踪查看器)。如果我想同时编码和阅读一些参考资料,我会使用 SemTop 来固定覆盖的窗口(这是快捷键派上用场的地方)。
So I can look at code and StackOverflow at the same time ;)
所以我可以同时查看代码和 StackOverflow ;)
回答by Craig Angus
I split the eclipse environment over two monitors (both running at 1600*1200)
我将 eclipse 环境拆分到两个显示器上(都以 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
在第二台显示器上,我有 Junit 窗口、问题、控制台和包浏览器
I have the same layout duplicated for all the perspectives that I use.
我为我使用的所有透视图复制了相同的布局。
I have never used the Alt-Shift-Qshort cut but I have found the Alt-Shift-X, Tshortcut for running junit works fine when I am focussed in the main coding window .
我从来没用过的Alt- Shift-Q短切,但我已经找到了Alt- - Shift,X当T我在主窗口的编码集中我的快捷方式运行JUnit工作正常。
Possibly have the package explorer on the same monitor as the coding window?
可能将包浏览器与编码窗口放在同一台显示器上?
回答by Robert J. Walker
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.
我有一个宽屏主显示器和一个非宽屏辅助显示器。我的主显示器上的布局分为三列:第 1 列包含上半部分的包浏览器和下半部分选项卡中的大纲、层次结构和搜索结果视图。第二列是代码,比其他两列宽大约两倍半。(因为我办公室里每个人都有宽屏显示器,所以我们标准化了 100 个字符的行而不是 80 个。)第三列的顶部是调试视图,有点小;变量、表达式和 JUnit 视图位于其下方的选项卡中,占据了大部分垂直空间;以及下面的一个小断点视图。我的辅助显示器有两个被撕掉的窗口:控制台占据了大部分屏幕,在它下面我有一个较小的窗口,其中包含选项卡中的问题和历史视图。
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.
我唯一的抱怨是当我从家里的单显示器设置远程桌面时:辅助显示器上的两个窗口移动到主显示器。我有一个“单屏”视角,我在这个场景中使用它来纠正这个问题,但是当我回到工作中并切换到双显示器视角时,我必须手动将窗口移回另一台显示器。我希望 Eclipse 将它们留在那里,但我看不出有什么方法可以做到这一点。
回答by Ursula
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!
希望这可以帮助!
回答by azerafati
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
,
我通过将我的 eclipse 扩展到两个显示器来做到这一点,在 Windows 中,您可以通过按住 win 键并点击来扩展屏幕P
,
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.
然后,选择我的左监视器作为主监视器,我拖动 eclipse 窗口的右侧以一直覆盖另一个屏幕。然后将eclipse分成三列。现在我的主显示器专用于代码编辑器,控制台和包浏览器在另一台上!当你有一个完整的代码监视器时,它总是有助于使用cntrl+{
并拥有第二个垂直列来查看同一个文件,或者将另一个文件的选项卡拖动到屏幕一侧以同时查看两者。
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
当我不在办公室时,我可以在我的视角normal
和dual monitor
视角之间切换
回答by ara.hayrabedian
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.
我已经减少(但没有消除)在 Eclipse 中使用 Ctrl+Shift+R 始终显示包资源管理器的需要,这会弹出一个过滤器窗口,可以在您记住名称的文件之间进行切换的简单,以及接受通配符,以便轻松找到您部分记住其名称的文件。
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.
我在我的主屏幕上保留源代码并在我的辅助屏幕上概述任务和 LogCat (android),如果我发现我正在阅读大量网络内容,我通过协同作用将我的笔记本电脑作为独立的第三个屏幕启动,这并不理想,但它作品。