Assign “Ctrl+S” to Subversion commit

[亡魂溺海] 提交于 2019-12-22 08:37:33

问题


In NetBeans, how can I make it so that every time I save a file it gets committed to Subversion?


回答1:


This sounds like a recipe for disaster!

That being said . . .

  1. Go to Tools : Options in the menu.
  2. Go to the Keymap tab.
  3. Type commit in the Search box.
  4. Locate the row for "Commit..." / "Subversion".
  5. Double-click in its Shortcut cell.
  6. Press the desired shortcut (e.g. Ctrl + Alt + Shift + S).
  7. Click the OK button.

As committing a file automatically saves it first, you could use Ctrl + S as the shortcut if you wish.

Note that this also works when you select one or more files in the Projects pane. Thanks for asking the question as I get really sick of navigating through the popup menus all the time. :)



来源:https://stackoverflow.com/questions/5033755/assign-ctrls-to-subversion-commit

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