Eclipse(3.5)如何水平比较文件?

发布于 2024-08-08 08:52:30 字数 401 浏览 5 评论 0 原文

通常,Eclipse“文件比较”会比较垂直面板中的文件,例如:

Compare using Vertical Panel

有没有办法可以水平比较它们,例如:

使用水平面板比较 http://www. sqlservertool.com/images/ad_hex_diff_small.gif

每次滚动查看更改内容太累了!

谢谢

Normally Eclipse 'File Compare' compares files in vertical panels like:

Compare using Vertical Panel

Is there a way I can compare them horizontally like:

Compare using Horizontal Panel http://www.sqlservertool.com/images/ad_hex_diff_small.gif

Its too tiring to scroll everytime to see what was changed!!

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

输什么也不输骨气 2024-08-15 08:52:31

查看 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.

虐人心 2024-08-15 08:52:31

恐怕 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 ;)

白衬杉格子梦 2024-08-15 08:52:31

我猜罗伯特指的是“选择下一个/上一个更改/差异”按钮(请参阅 Eclipse 帮助)。

I guess Robert was referring to Select Next/Previous Change/Difference buttons (see section Toolbar in Eclipse Help).

不即不离 2024-08-15 08:52:31

如果您的问题是滚动,请使用工具栏按钮在更改之间导航。

If your problem is scrolling, use the toolbar buttons to navigate between changes.

空城旧梦 2024-08-15 08:52:31

解决问题的一种方法是在文件比较期间最大化编辑器窗口,然后在比较完成后恢复它。我希望 Eclipse 默认这样做。

至于方向问题。我认为当你并排比较修订时它更具可读性。这可能就是 Eclipse 作者没有为我们提供水平布局选项的原因。他们可以给我们的是当前光标位置的差异。

One way to overcome your problem is to Maximize editor window during file compare, and then Restore 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文