问题
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.
I do have both git and github set up within my PhpStorm preferences:
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?
回答1:
Version Control Integration:
- Click on VCS in Menu Bar
- Click Enable Version Control Integration...
- Select Git from Drop-down and then press OK Button.
Remove Version Control Integration:
- Go to the Settings (Alt+Ctrl+S in windows).
- At Version Control you can remove Integrated VCS.
来源:https://stackoverflow.com/questions/38618843/how-to-enable-git-annotations-in-phpstorm