The Source for Java Technology Collaboration
User: Password:



Gregg Sporar

Gregg Sporar's Blog

Is That Shortcut in Use?

Posted by gsporar on March 09, 2008 at 05:20 PM | Comments (4)

How can I find out whether a particular keyboard shortcut is assigned to an action in the NetBeans IDE? That question was posted by davenull in a comment on my blog entry last month about Hippie Completion.

I will admit up front: the answer I provider here is a hack. As Brian Leonard points out in this IssueZilla entry, the IDE should have better support for this feature.

Let's say you are wondering whether or not Ctrl+Shift+Period is assigned to an action. Select Tools > Options > Keymap. You will see a list of the types of actions:


k1.png

In order to find out whether Ctrl+Shift+Period is assigned, you need to attempt to assign it to an action. The easiest way to do this is to try to assign it to an action that does not currently have a keystroke assigned.

Expand the entry for Help and select the entry for About and click the Add button:


k2.png

That brings up the Assign Shortcut dialog, where you can type in Ctrl+Shift+Period. If the keystroke combination you type in is already in use, the IDE will tell you to which action it is assigned. In my installation, that keystroke combination is already assigned:


k3.png

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • it seems clear the shortcut feature is a next feature this popup should contain ;)

    Posted by: felipegaucho on March 10, 2008 at 04:55 AM

  • I mean, shortcut search feature ...

    Posted by: felipegaucho on March 10, 2008 at 04:55 AM

  • you mean Netbeans doesn't fully support that yet? JBuilder had it way back around the year 2000...

    Posted by: jwenting on March 11, 2008 at 12:54 AM

  • Try this module to explore the shortcut to action bindings - forward and reverse.

    Posted by: sandipchitale on March 15, 2008 at 10:05 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds