Working with the comparison

Comparing file1.txt and file2.txt resulted in the following compare editor. In this section we will learn how to use the compare editor to resolve the differences between the two files.

Compare editor

There are two parts to the compare editor's local toolbar. The right group of local toolbar buttons (#1) allows you to move to the next or previous change. 

Compare buttons

  1. Click the Select Next Change button  Compare editor next button. Observe how it selects the next difference.
  2. Click Select Next Change button a second time to go to the next change. 

  3. Click the Select Previous Change button.

The left group of local toolbar buttons (see #2) allows you to merge changes from the left file to the right file and vice versa. There are four types of merges you can perform:

Typically the copy whole document actions are used when you know the entire file on either the left or right can just be replaced by the contents of the other file.

The Copy current change buttons allow you to merge a single change.  

  1. Ensure that the second difference is selected (as shown below):

    Compare editor

  2. Click Copy current change from right to left Compare editor right to left button button. Observe that the selected text from the right file is copied to the left file.

    Compare editor

  3. Close the compare editor and choose Yes to save the changes. Alternatively you can save the changes by choosing File > Save (Ctrl+S). 

Next topic Local history 

Back to previous topic Understanding the comparison

Copyright IBM Corporation 2000, 2002. All Rights Reserved.