Setting preferences for comparing files

When you select to compare or synchronize two or more resources in the Workbench, one or more comparison editors usually open. To customize how these editors behave:

  1. On the main menu bar, select Window > Preferences. The Preferences window opens
  2. Expand the Workbench category on the left and select Compare.
  3. Set your preferences and click OK.

You can configure the following options on the General tab.

Option

Description

Default

Open structure compare automatically

Makes an additional information area visible which shows differences in the underlying structure of the resources being compared. This information may not be available for all comparisons.

On

Show additional compare information in the status line

Causes the status line to display additional context information about the comparison.

Off

Ignore white space

Causes the comparison to ignore differences which are whitespace characters (spaces, tabs, etc.). Also causes differences in line terminators (eg. LF versus CRLF) to be ignored.

Off

You can configure the following options in the Text Compare tab.

Option

Description

Default

Synchronize scrolling between panes in compare viewers

The two compare viewers will "lock scroll" along with one another in order to keep identical and corresponding portions of the code in each pane side-by-side.

On

Initially show ancestor pane

Sometimes you want to compare two versions of a resource with the previous version from which they were both derived. This is called their common ancestor, and it appears in its own comparison pane during a three-way comparison.

Off

Show pseudo conflicts

Displays conflicts that occur when two developers make the same change, for example when both add or remove the same line of code.

Off

Text Font

Click the Change push button to change the default font for the comparison viewers.

Using Workbench Text Font

Related concepts
Three-way comparisons

Related tasks
Comparing resources
Synchronizing with the respository
Merging changes in the Compare editor

Related references
Compare editor

 
Copyright IBM Corporation and others 2000, 2002