Text Merge Alignment Settings
Description: These settings control the algorithm for aligning lines in the comparison.
Keywords: alignment control (in Text Merge)

## Please enable JavaScript to view this site.

# Beyond Compare

- Zoom Window Out
- Larger Text | Smaller Text
- Hide Page Header
- Show Expanding Text
- Print Topic
- Save Permalink URL

Text Merge Alignment Settings | Scroll Prev Top Next More Links

These settings control the algorithm for aligning lines in the comparison.

Pick Unaligned to compare files without aligning lines based on their content.

Pick Standard alignment to align the files by comparing successively smaller sections of each file. Parts of the alignment can be shown before the entire comparison is finished.

Pick Myers O(ND) alignment to align the files using a common LCS (Longest Common Subsequence) algorithm. This can give better matches in certain cases, such as large inserts or when the files contain a lot of repeating text. Since files are compared all at once, larger file scans take much longer than the standard method, and the files are not displayed until the comparison is complete. It does not support similarity comparisons, so mismatches will be grouped in blocks.

Pick Patience Diff alignment to align the files using Bram Cohen's algorithm.

Mark the Never align differences checkbox to show lines with important differences as blocks of added and deleted text rather than changed text.

The Skew tolerance specifies the maximum number of lines that the algorithm will check when looking for a match to a particular line. Increasing it can improve the alignment, especially if there are large gaps. Of course, the comparison may also require more time.

Mark the Use closeness matching checkbox to attempt to align the remaining mismatched lines based on their similarity.

Note Regardless of these settings, the alignment algorithm will sometimes produce undesirable results. To manually align two lines, right-click one line and pick Align With and then click the second line.

A merge conflict is

These settings define the scope of conflicts. A conflict occurs when the same section of text has changes on both left and right sides.

Pick Only different change lines to limit conflicts to where each line has changes on both sides. Pick Left change and right change separated by lines to specify the maximum number of lines between changes that should be considered conflicts. This way, left and right changes that are close to each other can be flagged for review along with direct conflicts.