Eclipse Equivalent of IntelliJ's Annotate (or Git Blame)

Viewed 12375

It's been a minute since I've developed in Eclipse. Is there an equivalent of IntelliJ's annotate feature?

In essence, you right click on the margin and select annotate. After which in the margin you see who the last people were who made modifications to the code per line (like git's blame).

enter image description here

Other notes:

3 Answers

In eclipse photon I've found I'm able to right click the gutter near the line numbers and click "show revision information".

enter image description here

the gutter is then highlighted different colors each line for what commit they belong to. Clicking the now colored line's number gutter I can peek at commit information. Here's the example header when doing so.

enter image description here

Edit: Sometime eclipse hides it this menu option under Team. Then you're stuck going through additional menus when you right click go to > Team > Show Revision Information

enter image description here

Sometimes to turn it off you may need to go to Revisions -> Hide Revision Information as the Show Revision Information button will not toggle the side gutter on/off, (only on). enter image description here

Just to add to user1821961's helpful answer on "Show Revision Information", besides lines that are colored by commit (and for which you can click to see the exact commit information), there may be others not colored. For those, you can click but won't see any commit information.

It turns out that those not-colored lines are where there are uncommitted changes.

This is verified with Eclipse 2018.

Related