Eclipse在单独的窗口中打开代码 [英] Eclipse open code in separate window

查看:240
本文介绍了Eclipse在单独的窗口中打开代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中编程,在两个监视器上运行。在其中一个显示器上,我只将Project Explorer和Editor作为一个自定义透视图,另一个我得到了其他工具,如控制台,调试,任务,变量,断点等。



当我在任务视图中单击任务时,例如,这将打开// TODO注释所在的资源。唯一的问题是资源在第二个监视器中打开。如何将eclipse配置为始终打开现有编辑器中的资源文件,即使在另一个窗口中?

解决方案

就像您使用窗口> 新窗口打开第二个窗口(也称为Workbench)。在这种情况下,您实际上有2个独立的工作台,因此有两个独立的编辑区域。在一个窗口中的视图只知道与该窗口相关联的视图和编辑区域。



为了完成与您似乎正在寻找的内容相近的内容,我认为最好的(仅?)选项是将要与编辑器分离的视图(例如,控制台,任务等)分离,并将它们放在辅助监视器上。两个独立的窗口,每个窗口都不同,它不是那么容易管理,但是我知道保持一个编辑区域的唯一方法。


I'm programming in eclipse, running on a two monitor setup. On one of the monitors I've only got the Project Explorer and Editor as a custom Perspective, and on the other one I got the other tools such as the console, debug, tasks, variables, breakpoints e.t.c.

When I click a task in the task view, for example, this will open the resource in which the //TODO comment is located. The only problem is that the resource is opened in the second monitor. How can I configure eclipse to always open resource files in the already existing editor, even if it's in another window?

解决方案

It sounds like you opened a second window (aka, Workbench) using Window > New Window. In that case, you actually have 2 separate workbenches and hence two separate editor areas. The views in one window only know about the views and editor area associated with that window.

To accomplish something close to what you seem to be looking for, I think the best (only?) option is to detach the views you want to be separated from your editor (eg, Console, Tasks, etc) and place them on the secondary monitor. It's not nearly as easy to manage as two separate windows each with a different Perspective, but it's the only way I know of to keep a single editor area.

这篇关于Eclipse在单独的窗口中打开代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆