Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 2.02 KB

CustomizingDiffToolSelectionOrder.md

File metadata and controls

52 lines (42 loc) · 2.02 KB

How to customize the order of DiffTools in your Reporter

Contents

* [Choosing a DiffTool preference](#choosing-a-difftool-preference)<!-- endToc -->

Choosing a DiffTool preference

If you do not like the default order that DiffTools are chosen, you can easily create a custom Reporter with your own preferences.
Once you create the class, you select it with the [UseReporter(typeof(CustomDiffReporter))]

public class CustomDiffReporter :
    FirstWorkingReporter
{
    public CustomDiffReporter()
        : base(
            //TODO: re-order or remove as required
            BeyondCompareReporter.INSTANCE,
            TortoiseDiffReporter.INSTANCE,
            AraxisMergeReporter.INSTANCE,
            P4MergeReporter.INSTANCE,
            WinMergeReporter.INSTANCE,
            KDiff3Reporter.INSTANCE,
            VisualStudioReporter.INSTANCE,
            RiderReporter.INSTANCE,
            FrameworkAssertReporter.INSTANCE,
            QuietReporter.INSTANCE
        )
    {
    }
}

snippet source | anchor

You can also override the default order while using DiffReporter by defining DiffEngine_ToolOrder environment variable. The value of that variable should contain a delimiter (,, |, ) separated list of the diff tool names in the desired order. More details about that in Diff Tool Order


Back to User Guide