Compare files in Visual Studio
Option 1 (Latest)
- In Visual Studio, Open Solution Explorer
- Select files that you want to compare
- Right click > Compare Selected
Option 2
- From Visual Studio Menu > View > Other Window > Command Window
- Enter
Tools.DiffFiles file1.cs file2.cs
Option 2
- From the Visual Studio Developer Command Prompt
devenv.exe /diff file1.cs file2.cs