Hidden NetBeans Feature: Export Shortcuts to HTML

Here's another incredibly hidden NetBeans feature. If you go to Help | Keyboard Shortcuts Card, a PDF document pops up, listing all the keyboard shortcuts predefined in NetBeans. However, what happens when you change one of those keyboard shortcuts? Now that PDF document is out of date. Wouldn't it be handy if you could export the currently defined keyboard shortcuts to an HTML file? Then you'd have that as your reference document, rather than the statically defined PDF document that NetBeans provides.

Well, here you go, map this action to a keyboard shortcut and then you can print out all the current keyboard shortcuts:

So, specify a keyboard shortcut for "Export Shortcuts to HTML". Then, press the key combination you defined, and go to the user directory, i.e., ".netbeans/7.1" or whatever it is in your case. There, in the "config" subfolder, you'll find an HTML file has been created:

Open the "shortcuts.html" file and there you'll find all the current definitions of the keyboard shortcuts. Of course, if you've been reading this blog since 2005, where I blogged about this, then all this is not really news to you.


How ugly. Surely the Keymap panel should just have a "Print..." button instead?

Posted by Jesse Glick on January 30, 2012 at 02:20 PM PST #

Loving the java/netbeans content of your blog!

If I didn't want to use up a shortcut for a seldom used, albeit pretty useful, feature, how does one export shortcuts to html?

Thank you.

Posted by Peg on November 29, 2012 at 01:49 PM PST #

I opened a RFE for better usability. http://netbeans.org/bugzilla/show_bug.cgi?id=226955

Posted by markiewb on March 03, 2013 at 03:31 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« May 2016