Compare two files in Visual Studio

Libor Zapletal picture Libor Zapletal · Dec 6, 2012 · Viewed 305.5k times · Source

I saw new comparsion tool in VS 2012 for comparing two files or two versions of file. I like it. But when I tried to find it I can't because I don't use TFS.

Is there a way how I can just compare two files with the built-in feature in VS (but without TFS)?

Answer

Vladimir Reshetnikov picture Vladimir Reshetnikov · Jul 15, 2013

You can invoke devenv.exe /diff list1.txt list2.txt from the VS Developer Command Prompt or, if a Visual Studio instance is already running, you can type Tools.DiffFiles in the Command window, with a handy file name completion:

Using Tools.DiffFiles from Visual Studio Command window