File Differ
Download this extension from the VS Gallery or get the CI build.
The easiest way to diff two files directly in solution explorer. This extension is inspired by a Visual Studio feature request, so please vote for it if you think it should be built in.
Solution Explorer
Here’s are the commands available from the right-click menu in Solution Explorer:
- Compare two files in Solution Explorer
- Compare file with another file on disks
- Compare file with content of clipboard
- Compare file with its unmodified version
Compare selected files
Select two files in Solution Explorer and right-click to bring up the context menu.
Then select Selected Files to see them side-by-side in the diff view.
Compare with a file on disk
If you only selected a single file, a file selector prompt will show up to let you select which file on disk to diff against.
Compare with clipboard
If there is text content on the clipboard, you can compare a file with it by selecting Clipboard from the context menu.
Code editor
There are also commands specific to the code editor. By right-clicking inside the code editor, you’ll get the following options for diffing:
- Compare selection with clipboard
- Compare active file with clipboard
- Compare active file with saved
- Compare active file with file on disk