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,267
  • 32
  • 41

2 Answers2

18
devenv /diff c:\file1 c:\file2
James McNellis
  • 348,265
  • 75
  • 913
  • 977
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
  • 1,151
  • 1
  • 11
  • 26