Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a keyboard shortcut to the Team->Add command in eclipse

I would like to have keyboard shortcuts to Team->Add and Team->Commit in eclipse. I am using eGit.

I added them in Preferences->General->Keys and that works in that the keys show up on the menus next to Team->add and Team->commit.

However, when I press the keys nothing seems to happen. The little Key Assist window pops up after the first key and shows me the matching commands, with 'Add to Git index' included, but the file is not added to the git index.

More generally, I would like to be able to commit the current project to git without having to use the mouse.

like image 976
Jose M Vidal Avatar asked Aug 13 '11 12:08

Jose M Vidal


People also ask

How do I set keyboard shortcuts in Eclipse?

the main preference page can be found under window > preferences > general > keys (or faster: press ctrl+3 , type keys and press enter ). from here you can see all commands and assign/change their associated keyboard shortcuts.

How do you add shortcut Keys?

To assign a keyboard shortcut do the following: Begin keyboard shortcuts with CTRL or a function key. Press the TAB key repeatedly until the cursor is in the Press new shortcut key box. Press the combination of keys that you want to assign.


1 Answers

Make sure that the Git command groups are available. Right-click a blank area of menu bar -> Customize perspective -> Command groups availability; make sure the 'Git' entry in the available command groups is selected.

like image 125
TheAmpersand Avatar answered Oct 16 '22 01:10

TheAmpersand