How to enable git annotations in PhpStorm


This is a silly problem, but I can't for the life of me figure out how to enable git annotations within PhpStorm. Normally you can just right click the line number gutter and select Annotate which displays information about who committed that code, when it was committed, and links to the commit on github. However, when I right click, the Annotate button is gray and not clickable.

Gray annotate button

I do have both git and github set up within my PhpStorm preferences:

git setupgithub setup

There's probably another setting in there somewhere, but I've been looking and I can't find it.

Anybody know how to get those git annotations working?

Best Solution

Version Control Integration:

  1. Click on VCS in Menu Bar
  2. Click Enable Version Control Integration...

enter image description here

  1. Select Git from Drop-down and then press OK Button.

enter image description here

Remove Version Control Integration:

  1. Go to the Settings (Alt+Ctrl+S in windows).
  2. At Version Control you can remove Integrated VCS.

enter image description here