Eclipse(3.5)如何水平比较文件?
通常,Eclipse“文件比较”会比较垂直面板中的文件,例如:
有没有办法可以水平比较它们,例如:
使用水平面板比较 http://www. sqlservertool.com/images/ad_hex_diff_small.gif
每次滚动查看更改内容太累了!
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
查看
org.eclipse.comparator.internal 的代码.CompareEditor
(这是您问题中所示的编辑器类的名称),我没有看到任何不同“方向”的迹象(水平布局与垂直布局)所以,没有。我认为当前的实现不允许您比较具有不同布局的文件。
Looking at the code of
org.eclipse.comparator.internal.CompareEditor
(which is the name of the class of the editor illustrated in your question), I do not see any indication of a different "orientation" (horizontal layout vs. vertical layout)So, no. I do not think the current implementation allows you to compare files with a different layout.
恐怕 VonC 是对的,当前的实现不支持更改布局,但是有一个 bug 已打开,因此您可以提供补丁或 ping Eclipse Workspace 团队的人员(包括我:),并要求他们为您修复它;)
I'm afraid VonC is right that the current implementation doesn't support changing the layout, but there is a bug open for it so you can either provide a patch or ping guys from Eclipse Workspace Team (including me :) and ask them to fix it for you ;)
我猜罗伯特指的是“选择下一个/上一个更改/差异”按钮(请参阅 Eclipse 帮助)。
I guess Robert was referring to Select Next/Previous Change/Difference buttons (see section Toolbar in Eclipse Help).
如果您的问题是滚动,请使用工具栏按钮在更改之间导航。
If your problem is scrolling, use the toolbar buttons to navigate between changes.
解决问题的一种方法是在文件比较期间
最大化
编辑器窗口,然后在比较完成后恢复
它。我希望 Eclipse 默认这样做。至于方向问题。我认为当你并排比较修订时它更具可读性。这可能就是 Eclipse 作者没有为我们提供水平布局选项的原因。他们可以给我们的是当前光标位置的行差异。
One way to overcome your problem is to
Maximize
editor window during file compare, and thenRestore
it after compares are done. I wish Eclipse did it by default.As to the question of orientation. I think it's more readable when you compare revisions side-by-side. That's probably why Eclipse authors did not give us an option of horizontal layout. What they could have given us were a line diff at the current cursor position.