How to set up SourceGear DiffMerge as the diff/merge tool for Visual Studio?

Shaul Behr picture Shaul Behr · Jul 8, 2013 · Viewed 9.1k times · Source

I am using TFS for source control, but I want to use SourceGear DiffMerge for viewing file differences and doing merges. I found the Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Configure User Tools dialog, but setting up the merge parameters is very confusing. What should those parameters be?

enter image description here

Answer

Jeremy Thompson picture Jeremy Thompson · Aug 29, 2013

These are the SourceGear settings that I use:

C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe

Compare:

/t1=%6 /t2=%7 %1 %2

Merge:

/m /r=%4 /t1=%7 /t2=%8 /t3=%6 /c=%9 %2 %3 %1