I have set up a keyboard shortcut for 'Show Annotations' in my Java source files since I frequently want to know when a Git revision was made, and sometimes by whom. The thick margin on the left with lots of colors, which is pretty distracting while coding, so I would like to toggle it off with a keyboard command.
Following the advice at help.eclipse.org in order to toggle the revision information off I'm now moving my pointer to the margin, right-clicking, selecting Revisions
, and clicking Hide Revision Information
. Is there a way to assign a keyboard shortcut to Hide Revision Information? If not, is there a different way to achieve the action that I can shortcut?
I have EGit installed (although I use it as little as humanly possible), if it matters.
You can use a trick. Use "Show Ruler Context Menu"-Short-Cut (Ctrl + F10
), then V
(for: ReVison), and then H
(for: Hide Revision Information).
So, whole Short-Cut looks like this: Ctrl + F10, V, H
I have not found a full answer to my question, but there's a coping mechanism: Toggle Revision Author Display
. With the toggle for author the most annoying part can be turned off: taking space for author name. The colors still remain, however.
As @AleksandrM mentioned the Quick Diff toggle does achieve the goal - but it does not work when line numbers are shown. In case line numbers are shown it just toggles the revision information on the line numbers, and shows changes compared to Head in your current file with Quick Diff colors.
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