How can I compare files in CodeWarrior IDE?

To compare files:

  1. Hold the CTRL key and select the files you want to compare.
  2. Right-click and select Compare With > Each Other.

    The Compare view appears.

    Figure 1. Compare View

    Compare View

    The C Compare area displays the list of items added or removed from the files. The items are marked with specific addition and deletion icons. Double-click an item to navigate to it in the files.

    Using the toolbar, you can:

    • Copy all changes, or only the not conflicting ones
    • Copy the current change to left or right
    • Go to the next or previous change or difference

Similarly, you can also compare more than two files in CodeWarrior IDE. To compare more than two files, you need to specify which file should be used as the common ancestor.

Figure 2. Specify Common Ancestor File

Specify Common Ancestor File

Figure 3. Compare More Than Two Files

Compare More Than Two Files

Using the Show Ancestor Pane and Two-Way Compare (Ignore Ancestor) toolbar buttons, you can display or close the Ancestor view.