问题
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 . . .
- Go to Tools : Options in the menu.
- Go to the Keymap tab.
- Type
commit
in the Search box. - Locate the row for "Commit..." / "Subversion".
- Double-click in its Shortcut cell.
- Press the desired shortcut (e.g. Ctrl + Alt + Shift + S).
- 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