shortcut for 'update to HEAD'

浪尽此生 提交于 2019-12-30 02:02:19

问题


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.


回答1:


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.




回答2:


In preferences go to Bindings

Sort by category

Find SVN

Assign a shortcut to "Update"

Mine is Ctrl + U




回答3:


Go to preferences and type "Bindings" in the search at the top and play around with that. You can't bind a button to it, but you might be able to bind a key to do what you want.



来源:https://stackoverflow.com/questions/3604999/shortcut-for-update-to-head

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!