Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Workbench User Guide
Previous Page Home Next Page

Simple compare

In one of the navigation views select file1.txt and file2.txt choose Compare With > Each Other from the context menu. 

A dialog will appear indicating that the two files are the same. 

Compare popup

Edit file1.txt as follows:

  • delete  line 1  "This is line 1."
  • change line 3 to be "This is a much better line 3."
  • insert a line 4a (before line 5) that reads "This is line 4a and it is new"

The file (file1.txt) should now read as follows: 

This is line 2.
This is a much better line 3.
This is line 4.
This is line 4a and it is new
This is line 5.

Save the contents of the file by choosing File > Save (or pressing Ctrl+S).

To compare the files, once again select file1.txt and file2.txt and choose Compare With > Each Other in the navigation view context menu.

A special compare editor opens. The next section will explain how to use this compare editor.

Compare Editor

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire