Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Show author of each line in editor?

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.

like image 282
kiwifrog Avatar asked Jul 07 '11 13:07

kiwifrog


People also ask

How do I add author details in Eclipse?

Simply go to: Window - Preferences - Java - Code Style - Code Templates - Comments - Types - Edit... and change ${user} to whatever you want. Also go to: Window - Preferences - Java - Editor - Templates - @author - Edit... and change ${user} to whatever you want.

How do I see annotations in Eclipse?

I found the easiest way to show annotations is just click on the vertical ruler then select "Show Annotations" from there.

How do I show line numbers in Eclipse editor?

Go to Windows → Preferences → General → Text Editors → Show numberlines. Click OK, then Apply changes. Then it will show the line count automatically.


1 Answers

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.

like image 90
Csaba_H Avatar answered Sep 19 '22 04:09

Csaba_H