Tool for comparing files in Visual Studio 2010

24.5k views Asked by At

I read the this Tool for comparing files in Visual Studio post and the recomended posts but unfortuantely it is only for VS-2008. I am wondering if there is a working tool for comparing selected files in visual studio 2010.

Ideally, select 2 files in Solution Explorer and right click and choose "Compare Selected Files"

I also have ankhSVN as my subversion program therefore cannot use

Edit: I have successfully selected WinMerge as my tool for Diff process, but how do i actually compare 2 files using it?

4

There are 4 answers

3
Sander Rijken On BEST ANSWER

AnkhSVN is the same for VS2005, 2008 and 2010. You can use Tools -> Options -> Source Control -> Subversion User Tools to configure your diff/merge and patch tools. It will auto-detect most tools, so you only have to select them from the dropdown menu.

See also ankhsvntips

EDIT: There's currently no option to diff 2 different files, you can only diff versions of the same file.

1
TimC On

I use BeyondCompare, its really good. http://www.scootersoftware.com/support.php?c=kb_vcs.php

0
JohnC On

VS IDE config instructions for WinMerge are available from Paul Bouwer's blog entry Replace diff/merge tool in Visual Studio Team System with WinMerge:

In Visual Studio under Tools > Options > Source Control > Visual Studio Team Foundation > Configure User Tools, add entries for Compare and Merge using the options indicated.

Works great anywhere in VS IDE that the Compare command is available eg in Pending Changes and Changeset Details windows.

Also works great with Windows Explorer integration and as a stand alone tool.

0
Rick Mohr On

SourceGear DiffMerge is great, and integrates well with VS2010 and AnkhSvn. It's recommended in the AnkhSvn wiki.

To compare 2 files just choose "Open File Diff..." from the "File" menu.