12

So I've been using the VS2012 diff tool with git recently and i dare say really like it. What's causing issues though is opening the diff using the command "devenv.exe -diff $file1 $file2" opens the diff in a new window (which takes aaaages). Anyone know if it's possible to open the diff in the current instance of Visual Studio and not a new one?

Adam Drewery
  • 1,508
  • 1
  • 17
  • 25

4 Answers4

14

You might want to look at this answer: use Tools.DiffFiles in the Command window.

Community
  • 1
  • 1
TauMu
  • 443
  • 3
  • 8
  • Not what I'm after unfortunately. I need to be able to add an entry to my gitconfig in the format `devenv.exe -diff $file1 $file2"`, but not open a new instance of Visual Studio. – Adam Drewery Jul 22 '13 at 22:46
1

I am using VS2013. Since I'm always running devenv.exe as Administrator, I've managed to achieve this by launching cmd (or app that calls -diff) with Administrator permissions also.

xb1itz
  • 1,022
  • 10
  • 17
0

In the solution explorer right-click on a file then choose compare. You will then have the option of selecting your files

AntLaC
  • 1,215
  • 10
  • 22
  • 2
    Sorry, I am speaking in particular about opening a diff via command line (for use with git in this particular situation). – Adam Drewery Oct 22 '12 at 07:11
0

This is the vs2017 default behaviour