12

Is it possible to use VS 2012 diff tool from console like below?

compare.exe c:\file1 c:\file2

EDIT

  1. Also you can run diff tool from Command Window and it will run in the same instance of VS.

    Tools.DiffFiles c:\file1 c:\file2
    
  2. Moreover there is an extension for VS 2012.

k0stya
  • 4,169
  • 30
  • 39

2 Answers2

18
devenv /diff c:\file1 c:\file2
James McNellis
  • 338,529
  • 73
  • 897
  • 968
0

To open the Visual Studio Code Diff Tool from cmd or powershell you can enter the following command and need to specify your files of course:

code --diff <path1> <path2>
baltermia
  • 570
  • 7
  • 19