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.
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.
I found the easiest way to show annotations is just click on the vertical ruler then select "Show Annotations" from there.
Go to Windows → Preferences → General → Text Editors → Show numberlines. Click OK, then Apply changes. Then it will show the line count automatically.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With