Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse shortcut for Compare With Head Revision

Tags:

git

eclipse

I want to have a keyboard shortcut for comparing the current open buffer with the HEAD version of that file. This is available in the context menu by clicking Compare With/Head Revision.

I tried to add a key binding in Preferences/General/Keys, but the key binding is ignored. I can set (and use) shortcuts for Compare with other resource and Compare with previous version, but the most useful one, Compare with HEAD Revision doesn't work. I couldn't find any difference between the ones that work and the ones that don't.

I am using Eclipse Helios (3.6.2).

like image 906
Iulian Dragos Avatar asked Nov 17 '11 11:11

Iulian Dragos


1 Answers

The answer is actually what Mohsen suggested: Window dropdown menu > Customize Perspective > Command Groups Availability and there check the Git box.

This enables the relevant shortcut keys for this perspective.

like image 91
derio Avatar answered Sep 19 '22 16:09

derio