Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shortcut for 'update to HEAD'

is there any way to have either

  • shortcut or
  • icon

for svn Update to HEAD of one project (not all of them) in eclipse? It would make my life much much easier.

I have few php projects though. Time to time I click 'commit' by accident.

Running Eclipse for PHP Developers - Helios release - on OS X.

like image 882
Radek Avatar asked Aug 30 '10 23:08

Radek


2 Answers

I'm posting this to help anyone interested since I got a lot of grief before figuring this out..

You have to go to Settings > General > Keys and bind the shortcuts as the others have said.

I have:

  • Commit: Ctrl + Alt + C

  • Update to HEAD: Ctrl + Alt + U

  • Synchronize with Repository: Ctrl + Alt + S, all "In Windows"

But, in order for the shortcuts to work, you must go to Window dropdown menu > Customize Perspective > Command Groups Availability and there check the SVN box.

With this option you also get a dropdown menu called SVN with all the relevant commands.

Selecting the file/package/project/working set and pressing the keys does its magic.

like image 159
derio Avatar answered Sep 22 '22 22:09

derio


In preferences go to Bindings

Sort by category

Find SVN

Assign a shortcut to "Update"

Mine is Ctrl + U

like image 22
Roman M Avatar answered Sep 26 '22 22:09

Roman M