Visual Studio - Compare an existing file with a History file from Source Control
* This article, and all our great .NET Development documentation, Is available on the .NET Development menu
Comparing two files in Visual Studio is something every developer needs, yet the built-in options are surprisingly hidden. Most people assume you need an extension, but Visual Studio already includes a powerful diff viewer—you just have to know where to find it. In this article, we’ll walk through two fast, reliable ways to compare files using features that ship with Visual Studio: the Command Window’s Tools.DiffFiles command and the Solution Explorer “Compare Selected” option. Once you know where these tools live, you can launch a diff in seconds without installing anything extra.
|