Assign "Ctrl+S" to Subversion commit

2.9k Views Asked by At

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

1

There are 1 best solutions below

3
On BEST ANSWER

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. :)