'Compare With' features

How to compare files with each other and with Local History.

Compare With Each Other

To compare two files in the same project with each other:

  1. In the OPL Projects Navigator, highlight the two files you want to compare and right-click to display a menu and choose Compare With > Each Other from that menu.
  2. The files are opened in the Editing Area in a special view that allows you to view them side by side, with the differences between the two files highlighted:
    Compare With Each Other result

Compare With Local History

To compare a file with another version of itself in Local History:

  1. In the OPL Projects Navigator, highlight the file you want to compare to its own Local History versions and right-click to display a menu. Then choose Compare With > Local History from that menu.
  2. In the Output Area of the CPLEX® Studio IDE, a list appears of the different versions of this file in Local History:
    Compare With Local History revisions list
  3. Double-click on the version of the file that you want to compare to the current version.

    The files are opened in the Editing Area in a special view that allows you to view them side by side, with the differences between the two files highlighted:

    Compare With Local History result