Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare two files in Visual Studio

I saw the new comparison tool in Visual Studio 2012 for comparing two files or two versions of a file. I like it. But when I tried to find it I couldn't it, because I don't use TFS.

Is there a way how I can just compare two files with the built-in feature in Visual Studio (but without TFS)?

like image 687
Libor Zapletal Avatar asked Dec 06 '12 21:12

Libor Zapletal


People also ask

How do I compare files in Visual Studio?

locate the required file in the Solution Explorer window, right-click it and choose Compare Selected File in the context menu; open the required file in Visual Studio, right-click the required document name in the document tab well and in the document's context menu select Compare Current File.

Can Visual Studio code compare two files?

Open VS Code with the files you are going to compare. Right-Click one file you want to compare => Select for Compare.

How do I compare data between two files?

From the Micro Focus Data File Tools window, click Tools > Compare Files. The File Compare dialog box appears. Select the two data files to compare: In the File 1 section, click and select the required file.


1 Answers

You can invoke devenv.exe /diff list1.txt list2.txt from the Visual Studio Developer Command Prompt or, if a Visual Studio instance is already running, you can type Tools.DiffFiles in the Command window, with a handy file name completion:

Using Tools.DiffFiles from the Visual Studio Command window

like image 146
Vladimir Reshetnikov Avatar answered Oct 09 '22 15:10

Vladimir Reshetnikov