tribefoki.blogg.se

Visual studio 2017
Visual studio 2017










visual studio 2017 visual studio 2017

Select two files to compare in the explorerĭrag and drop them as shown in the animation below:Īfter a few seconds (depending on the launch time of Visual Studio), the results will be shown in Visual Studio:

VISUAL STUDIO 2017 CODE

Save this code as VS_FileCompare.cmd to use it, and modify vspath if required to match the location of devenv.exe (depending on the Visual Studio version you're currently using, see footnote *) )Įither create a shortcut named "File Compare" for VS_FileCompare.cmd and place it on the desktop (as used in the animation below), so it is always available to drag & drop files onto it or directly place the batch file on the desktop. This is because I noticed that the file explorer passes the second file as the first parameter, and then the first file as the second parameter. You might notice that I have reversed the %1 and %2 parameters in the batch. Start "Compare files" /B /MIN "%vspath%\devenv.exe" /diff %2 %1 First:'%2' Second:'%1' Set vspath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE Visual Studio already has everything you need, and there are only some configuration steps required to make this working: File compare using drag & dropĬreate a new batch file using your favorite text editor. It only requires a little preparation which you need to do once and then it is useful like a Swiss army knife. Inspired by Vladimir Reshetnikov's answer above, I found a very comfortable way how you can instantly compare two files with Visual Studio by using drag and drop or via the "Send To" context menu.












Visual studio 2017