Photo from Chile

Creating Eclipse (and CFBuilder) Keyboard Shortcuts for Subclipse

Here's another quick tip to keep your hands on the keyboard and off of the mouse. I currently use both Subversion and Git for version control of my code, but I definitely use Subversion more. One thing that I found myself using the mouse for time and again was to commit changes to my SVN repo using the Subclipse Eclipse plug-in. One of the worst things about that workflow is the number of steps it takes. You have to right-click, then select Team, and then select Commit from the menu. I'm not sure why I continued to do that for so long, but I finally got around to Googling "Subversion Keyboard Shortcuts" and came across a blog post by Mads Darø Kristensen, with a video no less, that shows exactly how to set these up. The steps are as simple as this:

  1. Open the Eclipse Preferences menu (command+, on a Mac).
  2. Choose General -> Keys.
  3. In the box where it says type filter text, type SVN.
  4. Choose the Commit command from the list of commands.
  5. Place your cursor in the box labelled Binding and type the key combination you wish to use. I use control+option+C.
  6. Click the Apply button.

Now, when you're done editing a file and you want to commit it to your SVN repo, just type the key combination and the Subclipse Commit dialog box will appear. If you want to commit all files in a project or a folder, rather than just the current file, then highlight the project or folder (which seems to require some mouse-work, unfortunately), and then type your combo. I've also assigned control+option+R to Revert and control+option+S to Synchonize with Repository. I'm finding that these shortcuts are saving me a lot of time, and allowing me to keep my hands on the keyboard, where they belong.

Thanks Bob! I've actually wanted to do something like this for a while, but I just never took the time to do it.
# Posted By Steve Good | 1/29/10 2:19 PM
The subversive eclipse plugin already has those keyboard shortcuts built-in. Another eclipse plugin I've got is the MouseFeed plugin (via someone on Twitter) which shows you the keyboard shortcut for any command you do with a mouse. Handy for learning new shortcuts!
# Posted By John Whish | 1/31/10 5:20 AM
HUGE BIG thanks for this.
Saving me time, saving me time!
# Posted By John Allen | 11/30/10 7:45 PM
Sorry, the last link was messed up, here it is:
# Posted By Tb | 2/8/11 2:53 AM