Im trying to move over to Visual Studio Code from WebStorm but WebStorm still has this one killer feature that I cant see how to do in Visual Studio Code.

I can quickly pull up a list of my commits and then diff any one of them:

enter image description here

enter image description here

Please tell me Visual Studio Code has a way of doing this?

  • Are you referring to Visual Studio 2015/2017 or Visual Studio Code? – Daniel B Sep 21 '17 at 15:37
  • Its Visual Studio Code. – Evanss Sep 21 '17 at 15:48

Yes, it has built in git integration. Please refer to this tutorial. There are also plethora of extensions, like Git History and Git Project Manager

Git History extension result

  • Its similar but I cant see a way of diffing by a commit rather than by a file. – Evanss Oct 4 '17 at 10:30
  • 1
    After you install Git History extension, you will get this ability. Command-Shit-P, select Git: View History (git log). You will see all the commits, much like in your first picture. Then you can select the (commited) version you want to compare to. – igrinis Oct 4 '17 at 11:59

Ctrl + Shift + G

Then click on the "M" (short for Modified) next to the file that you wish to view diffing on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.