Key Binding & Code Template Viewer

Did you know that Ctrl-Shift-C (as well as Ctrl-/) toggles comments in a Java file, i.e., adds/removes two forward slashes? I didn't know that until browsing through my new Key Bindings viewer:

To see the viewer above in the context of the whole IDE, click the image above.

Want to try it too? Together with the Code Templates viewer shown in this blog yesterday, you can try out the above by installing the plugin here, which you can install into NetBeans IDE 7.3.1:

You'll see that I tried to convert the strange notations, e.g, "DS-A" to their human readable equivalents, e.g., "Ctrl-Shift-A", though haven't completed that yet. Also, the viewers are not updated when you change the code templates and keybindings in the Options window. That's a feature for the next version of the plugin, shouldn't be hard via a FileChangeListener.


Hi Geertjan. Where are the sources of your plugin? Best regards

Posted by markiewb on July 22, 2013 at 11:40 AM PDT #

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.


« July 2015