17

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.

kiwifrog
  • 764
  • 3
  • 10
  • 23

3 Answers3

22

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.

Csaba_H
  • 8,215
  • 1
  • 41
  • 42
  • 2
    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". – user2568374 Mar 09 '17 at 19:47
  • @user2568374 I´m having the sam problem did you solve that issue? – CarlosJavier Dec 12 '17 at 23:09
  • @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 select – user2568374 Dec 15 '17 at 16:21
9

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

deccles
  • 101
  • 1
  • 3
  • 2
    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! – hamena314 Sep 01 '20 at 14:11
5

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.

santosh kumar
  • 574
  • 8
  • 10