开发者

How to compare a file in a project with one in the filesystem in eclipse?

I have an eclipse project containing a source file. Now I开发者_JAVA百科 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?


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

Interesting article "Compare with" Dialog


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 :-)


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.


All those are bad answers... rather have "there's no way" and go back to diff than very cumbersome ways...

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) Bam ! Compare is up.

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.

Simple as bread and butter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜