

Right Click another file you want to compare => Compare with Selected, Right-Click one file you want to compare => Select for Compare.
#COMPARE FILES IN VSCODE CODE#
Open VS Code with the files you are going to compare. VS Code actually is a good tool for comparison, We skip MS Word because it is especially for office document comparison, not our code comparison. 2, Other Applications, such as VS Code or MS Word These tools are easy to use, for occasional comparison, it is a good choice. 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,Ĭopy and paste the contents of your two files for comparison into the two frames, then Find Differences, you will get. C: Tools outside of Visual Studio for Files Comparison 1, Online Comparison
#COMPARE FILES IN VSCODE SERIES#
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. The Visual Studio only supports the GUI Compare Files feature to TFS or Git, the source control tools.


#COMPARE FILES IN VSCODE 64 BIT#
Set default path as "%PROGRAMFILES(X86)%\Beyond Compare 4\BCompare.exe", which should work better on 64 bit installations of Windows.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.Rewrote VSIX project for Visual Studio 2019.Adding Pro, Enterprise, and Shell Integration to supported editions.Moved GetServiceAsync to InitializeAsync in all Commands.Added product and version info to configuration dialog.Updated VS2017 and VS2019 VSIX projects to use new common library.Moved common code out of VSIX project and moved to common library project.Changed configuration storage to json file instead of flat text file.Added extra arguments configuration field.Added ability to add extra arguments to be placed before the compared file names.Recreated VSIX project for VS2017 version.Added validation of compare tool file path on configuration save.Added validation error if compare tool file path does not exist on compare.Updated Newtonsoft.JSON reference to 13.0.2.Tested with SourceGear's DiffMerge as well, and should work with most file comparison utilities. Configured to use Beyond Compare 4 by default at %PROGRAMFILES(X86)%\Beyond Compare 4\BCompare.exe. Shift or Ctrl Click on Two Files, Right Click, and Compare FilesĬonfigurable by a "Configure Compare Files." menu item under the Visual Studio Tools menu. Will also spawn a compare for subtype files if both files have subtype files, for example. The configured third-party comparison tool will come up show a diff between the two files. Control click any two files in Solution explorer and then right click and select "Compare Files.".
