One usually has the need to compare two files or two folders, or two branches, especially as a frequent user of Visual Studio, one hopes to find a way to use Visual Studio to complete the comparison job in Visual Studio with somewhat the way like Source Control or Version Control software for comparison.
This article will cover this topic and related issues (we use the current version of 2019 16.11.0).
It seems this article is a little bit too long, I split it into two: one with native Visual Studio Tool, another is Visual Studio with Extension or Non-Visual Studio.
After splitting the article into two, they are still too long, I split it as three,
- Compare Files (1), with TFS and Git GUI in Visual Studio
- Compare Files (2), with Visual Studio Built-in Tool
- Compare Files (3), with Visual Studio Extension or Other Apps --- this article
Introduction
Contents of this article series,
- Compare Files (1), with TFS and Git GUI in Visual Studio
- TFS
- Git
- Compare Files (2), with Visual Studio Built-in Tool
- Command-line in Visual Studio
- Visual Studio Developer Command Prompt
- Windows Prompt
- Compare Files (3), with Visual Studio Extension or Non-Visual Studio Apps
- A: Tools outside of Visual Studio for Files Comparison
- Online comparison, such as diff
- Other Applications, such as VS Code or Word
- B: Visual Studio Extention for Comparison Tools from Third Parties:
- Code Compare in Visual Studio --- devart.com
- Compare Files VS2019 --- marketplace.visualstudio.com
- A: Tools outside of Visual Studio for Files Comparison
The Visual Studio only supports the GUI Compare Files feature to TFS or Git, the source control tools. We will discuss these features in the first article of this article series; and then as an alternative, we invoke the Visual Studio built-in Comparison Tools from the command line that we will discuss in the second article in this article series and finally, we discuss the alternative ways to compare files without Visual Studio in the third article.
C: Tools outside of Visual Studio for Files Comparison
1, Online Comparison
Google diff, you will get a bunch of online tools for comparison, such as Diffchecker - Online diff tool to compare text to find the difference,

Copy and paste the contents of your two files for comparison into the two frames, then Find Differences, you will get.

These tools are easy to use, for occasional comparison, it is a good choice.
2, Other Applications, such as VS Code or MS Word
We skip MS Word because it is especially for office document comparison, not our code comparison. VS Code actually is a good tool for comparison,
Open VS Code with the files you are going to compare. Right-Click one file you want to compare => Select for Compare.

Right Click another file you want to compare => Compare with Selected,







Hardik BarvaliyaPosted Jun 18, 2026, 6:31 AM
Thanks for sharing this comparison guide. I often need to compare documentation updates, configuration snippets, and content revisions, and browser-based tools can be a convenient option when a full IDE isn't necessary. Another tool that might be worth adding to the list is Text Differ: "https://text-differ.com/".
DraftablePosted Jan 27, 2022, 10:40 AM
Amazing article but I want to suggest one more tool to compare two files i.e Draftable. You can easily compare two files by using this tool. Use it by going to their website "https://draftable.com/compare".