The Workbench allows us to compare multiple resources and present the results in a special compare editor.
Setup
Before we get started with compare we need to create a few files. This will also be a good time to recap some of the basic features we have already learned about.
1. |
Start by selecting all of the projects in the Navigator and deleting them by using Delete on the popup menu. |
2. |
Create a new simple project using File > New > Project.... Be sure to give the project a distinct name by typing your name as the name of your new project (e.g., "JaneQUserCompare"). Do not use spaces or special characters in the project name. |
3. |
Use the project's popup menu to create a file called file1.txt. In the editor for file1.txt type the following lines of text and save the file:
|
4. |
In the Navigator select file1.txt and use Ctrl+C to copy the file. |
5. |
Use Ctrl+V (Paste) to create the copy. In the name conflict dialog which appears, rename the file to be file2.txt. |
We now have two files, file1.txt and file2.txt that are identical. It's time to have some fun with the compare feature.