Eclipse - 相同.Java文件在拆分视图? [英] Eclipse - Same .Java file in split view?

查看:66
本文介绍了Eclipse - 相同.Java文件在拆分视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许这是一个微不足道的问题,但这是一个令我非常讨厌的事情。我正在编辑某人的程序,他们的 .java 文件是绝对庞大的。我正在尝试编辑它,同时引用它。



是否可以在Eclipse中分割屏幕,以允许分割视图相同文件?

解决方案

A。窗口 - >新编辑器



或(稍快)



B。右键单击选项卡上要在另一个拆分视图中查看的代码,然后选择新建编辑器,在相同的编辑器窗口中复制此选项卡(即无需打开全新的编辑器窗口如在A中。)



然后将新标签向右拖动,直到看到箭头,然后抬起手指。以这种方式执行这两种观点将同步:您在左侧更改的所有内容将在右侧更改。


Perhaps this is a trivial question, however it's something that is seriously annoying me. I'm editing someone's program at the minute and one of their .java files is absolutely massive. I'm trying to edit it at the moment, whilst referencing it as well.

Is it possible to split the screen in Eclipse, to allow a split view of the same file?

解决方案

A. Window -> New editor

or (slightly quicker)

B. Right-click on the tab with the code you want to see in another split view and choose "New Editor" to duplicate this tab in the same editor window (i.e. without having to open a completely new editor window as in A.)

Then drag the new tab to the right until you see an arrow, then lift your finger. Doing it this way the two views will be in sync: everything you change on the left will change on the right.

这篇关于Eclipse - 相同.Java文件在拆分视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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