Eclipse: Show author of each line in editor?

北城以北 提交于 2019-11-30 14:54:19

问题


I'd like to show the name of the author of each line in my Java files. I am already using FishEye (http://www.atlassian.com/software/fisheye/) but I'd like to have this feature within my Eclipse Java editor.


回答1:


There is a similar feature in Eclipse: select Team / Show Annotation... in the right click menu on a Java file. It should work with various team providers (I only have experiences with CSV and SVN).

Short description of this feature is available here.

UPDATE: for the Eclipse EGit team provider, the corresponding menu is called Team / Show revision information. See more information in the excellent EGit User Guide.




回答2:


As of (at least) Eclipse Oxygen, "Show Annotation" is no longer on the Team menu.

The menu has been renamed "Show Revision Information", and is located at the bottom of the Team menu.




回答3:


In Eclipse right click on your java class.

Team -> Show Revision Information

then right click on the line numbers

Revisions -> Show Author

this will give the name of authors for each line.



来源:https://stackoverflow.com/questions/6611028/eclipse-show-author-of-each-line-in-editor

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