How to enable git annotations in PhpStorm

淺唱寂寞╮ 提交于 2019-12-08 17:37:49

问题


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:

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

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

Remove Version Control Integration:

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



来源:https://stackoverflow.com/questions/38618843/how-to-enable-git-annotations-in-phpstorm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!