Search code examples
c#visual-studiofile-comparisonwinmerge

Open two files for comparison


From Solution Explorer, I'd like to select two C# code files for textual comparison. I have got WinMerge installed on my machine, which accepts multiple file names on the command line. So I tried to use Open With... command and add WinMerge to the list of existing options. The problem however is that I don't know what to write in the Arguments textbox. Setting it to %1 simply sends the first selected file to WinMerge. %2 is not recognized by VS and is literally pasted into WinMerge.

What is the correct syntax to send two files?


Solution

  • You can try the File Differ extension by Mads Kristensen. It uses the differencer you have configured for Visual Studio.