Quick tip: file differences in Visual Studio
September 1, 2014
Posted by on
Visual Studio has a pretty good file differencing tool … but it only seems to be available from the GUI if the files you are comparing are under source control.
If you want to compare other files, e.g. the output from an app, etc, a common suggestion is this:
devenv.exe /diff list1.txt list2.txt
which will start a separate instance of Visual Studio and then run the diff tool.
If you want to use diff within a running instance, though, this can be done from the Visual Studio command window (CTRL+W, A) then:
Tools.DiffFiles list1.txt list2.txt
This doesn’t require any plugins or extensions to be installed.