Eclipse: Show author of each line in editor?
Asked Answered
U

3

18

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.

Urnfield answered 7/7, 2011 at 13:2 Comment(0)
M
23

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.

Monagan answered 7/7, 2011 at 13:9 Comment(3)
How do you get "Team - Show Annotation" to show up? I don't have that option. I have Egit installed and "Team - Show in history" but not "Annotation".Ngo
@Ngo I´m having the sam problem did you solve that issue?Banka
@xiidarkevil got it this way: “Team->Show In History” does not appear for file right click: 1. Right click on Project package 2. Select Team - share project 3. Select git 4. Select User or create repository in parent folder of project 5. Select folder with one dot (.git) + finish 6. right click file for history, right click text area and selectNgo
C
10

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.

enter image description here

Coincidental answered 10/4, 2018 at 16:12 Comment(1)
To hide the revision information, right click into the revision information -> "Revisions" -> "Hide Revision Information". Clicking "Show Revision Information" will NOT hide the revision information! I find this to be a very un-intuitive menu!Samy
F
7

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.

Flaggy answered 25/10, 2018 at 16:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.