如何在 Eclipse 中比较项目中的文件与文件系统中的文件?

发布于 2024-08-09 02:40:41 字数 157 浏览 5 评论 0原文

我有一个包含源文件的 Eclipse 项目。现在我在文件系统中的某个地方(不在 Eclipse 项目中)有该文件的不同版本。

我可以在 eclipse 中打开第二个文件,但我找不到方法将其与第一个文件进行比较。

如何比较这两个文件?

I have an eclipse project containing a source file. Now I have a different version of that file somewhere in the filesystem (not inside an eclipse project).

I can open the second file in eclipse, but I find no way to compare it to the first file.

How can I compare these two files?

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

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

发布评论

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

评论(4

君勿笑 2024-08-16 02:40:41

或者使用 WinMerge 作为外部程序 - 这不是真正的方法,但快速且简单

有趣的文章“比较”对话框

Or use WinMerge as external programm - aslo not true way, but fast and simple.

Interesting article "Compare with" Dialog

篱下浅笙歌 2024-08-16 02:40:41

一种简单的方法是在 Eclipse 工作区中的同一目录中创建一个临时副本,以使其更加容易。然后比较,然后删除。

这不是理想的理论方法,但快速且简单容易记住。

这就是我所使用的,但我愿意改进我的方法:-)

A simple way is to make a temporary copy in your Eclipse workspace, in the same directory to make it even easier. Then compare, then delete.

Not the ideal theoretical way, but fast and simple to remember.

It's what I use, but I'm open to improving my ways :-)

白日梦 2024-08-16 02:40:41

使用远程系统资源管理器 (RSE) 插件查找操作系统中的文件。

从以下链接下载 RSE 插件(请检查您正在使用的 Eclipse 版本)http ://download.eclipse.org/dsdp/tm/downloads/

安装后:
1. 通过导航在新视图中显示本地文件系统:Windows ->显示视图->其他->远程系统 ->远程系统

  1. 使用 CTRL 键单击选择 2 个文件进行比较。

  2. 右键单击打开上下文菜单并选择比较 - 相互。

Use the Remote System Explorer (RSE) plugin to find the files in the operating system.

Download the RSE plugin from the following link (Please check against the version of Eclipse that you are using) http://download.eclipse.org/dsdp/tm/downloads/

Once installed:
1. Display your local file system in a new view by navigating: Windows -> Show View -> Other -> remote Systems -> Remote Systems

  1. Use CTRL-Click to select 2 files for comparison.

  2. Right-click to bring up the context menu and select Compare - To each other.

明媚殇 2024-08-16 02:40:41

这应该很简单:

“标记第一个文件 - >右键单击 - >选择进行比较”

然后
“标记第二个文件-->右键单击-->与 xxxx 比较”(xxxx 是您首先标记的内容)

要记住的另一个有用选项:

“标记第二个文件-->右键单击-->”并可以选择将其标记为首次比较,以防您改变主意。

This should be as simple as:

"mark first file-->right click-->select to compare"

then
"mark second file-->right click-->compare to xxxx" (xxxx is whatever you first marked)

Another useful option to keep in mind:

"mark second file-->right click-->" and have an option to mark this as first compare, in case you change your mind.

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