Reputation: 20391
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).
Other notes:
Upvotes: 26
Views: 20818
Reputation: 52516
Although I am use latest version is not suitable for the question, but helpful for someone search info. I am using Eclipse IDE 2024-03. Left side bar (Where you see line numbers), right click, choose Revision.
Upvotes: 0
Reputation: 4311
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.
Upvotes: 0
Reputation: 716
In eclipse photon I've found I'm able to right click the gutter near the line numbers and click "show revision information".
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.
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
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).
Upvotes: 41
Reputation: 20391
I figured out how to get things to work. Below is what I did to solve the issue.
Open the history for the file. Then right click on a previous commit. Select "Show Revision Information". From here you'll see the margin's line numbers now shows as different colors (assumes you have line numbers showing).
Now, Right Click on the margin -> Revisions -> Show Author
Upvotes: 14