Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assign "Ctrl+S" to Subversion commit

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

like image 404
Leonardo Avatar asked Feb 26 '23 01:02

Leonardo


1 Answers

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

like image 97
David Harkness Avatar answered Mar 29 '23 13:03

David Harkness