Search code examples
eclipsesvnkeyboard-shortcutssubclipseediting

Eclipse: bind Command key to show SVN annotations


I wanted to show SVN annotations in Eclipse (3.7) automatically. It turns out I can only bind a key (Command) to it:

Show CVS annotations by default in Eclipse

It's under General->Keys. But it's not working. I tried a few combinations of (Command, Binding and When) settings, however the annotations never appeared on the left margin of any editor. From the context-menu (Team->Show Annotation...) it's working fine.

I'm about to use Ctrl+Shift+Z which is not used by any Eclipse or OS command yet.

Can someone share me the exact Command?


Solution

  • In addition to binding the key command you need to activate the SVN command group in your current perspective.

    Step 1: Bind Command

    • Window -> Preferences -> General -> Keys
    • Search for "show annotation" and set a key binding for category "SVN", "Ctrl+Shift+Z" for example (I use "Ctrl+Alt+A"). Choose "In Windows" as "When".

    Step 2: Activate SVN Command Group

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