Musings of a PC

Thoughts about Windows, TV and technology in general

Quick tip: file differences in Visual Studio

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: