开发者

How to activate revision info in line number view

开发者 https://www.devze.com 2022-12-13 21:35 出处:网络
I know of an Eclipse feature to show revision information (gradual coloring, more 开发者_如何学Cinfo like revisionnumber, date and author on mouseover) for the last changes in a line in the linenumber

I know of an Eclipse feature to show revision information (gradual coloring, more 开发者_如何学Cinfo like revisionnumber, date and author on mouseover) for the last changes in a line in the linenumbers-view.

Does anyone know how to activate this feature for a file, or even better, by default? I accidently hit some shortcut lately which made it show in one file, it does not show up in the others, though.


This is called "Show Annotation" and you can find it in the "Team" menu. Since this is a pretty expensive operation, you can't make it the default.


Regarding the shortcut: You have to enable the command group SVN.

Window -> Customize Perspective... -> Command Groups Availability -> check "SVN".

If you do this, some SVN actions show up in the toolbar which you can remove again (if you want) using the same Customize Perspective dialog (tab Tool Bar Visibility).

Remapping the shortcut did not work for me but enabling the command group did (with the default key mapping Ctrl+Alt+A).

(did not find a way to reply to Aaron's answer so I had to create a new one)


I found my way here while trying to find a way to get the option to show up with code from my git repository.

A lot of the logic in the other answers applies to git too, and I followed the equivalent steps for git but it didn't help me.
It turned out that my projects, although imported from a git repository, hadn't been connected to (or had become disconnected from) the eclipse git integration. I think this happened because I imported the projects before I installed the elcipse git plugin.

I needed to connect them thus:

  • Right-click your project (or multiple selected projects) in the Project Explorer
  • Select 'Team' > 'Share Project...'
  • The default settings were fine for me, but change them if needed
  • Click 'Finish'

I found this solution here.

0

精彩评论

暂无评论...
验证码 换一张
取 消