Customising your keyboard shortcuts in NetBeans IDE

One of my favourite features of NetBeans IDE is the ease with which you can customise the keyboard shortcuts. This feature is accessed from the NetBeansPreferences window.

Netbeans preferences

Firstly, you can choose not only the standard NetBeans shortcuts but also Eclipse, IDE and Emacs. This is very useful if you started with a different IDE and do not want to have to relearn all the settings.

The search boxes allow you to filter all the commands from a keyword or by typing in a keyboard shortcut (I want to check what is assigned to ctrl+f).

NetBeans search filter

 

NetBeans shortcut filter

 

 

All the columns are editable so you can type in a box to remove a keyboard shortcut. Or press your selection of keys and the values will be inserted.

edit netbeans

 

Once you click on apply, the changes will be saved and NetBeans will recognise your new settings. You will see the new keyboard shortcuts on any menu.

All this makes it very easy to configure and setup NetBeans exactly as you want. My keyboard combination is the IDEA IDE set (which is what I learnt) with the format shortcut redefined to Indent. What combination do you use?

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (Twitter, Facebook and Google+) or the  Blog RSS.

This post is part of our “NetBeans article Index” series. In these articles, we aim to explore NetBeans in different ways, from useful hint and tips, to our how-to’s, experiences and usage of the NetBeans IDE.

Related Posts:

The following two tabs change content below.

Mark Stephens

System Architect and Lead Developer at IDRSolutions
Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX. He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.
Markee174

About Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

4 thoughts on “Customising your keyboard shortcuts in NetBeans IDE

  1. Is there any way to set keymap to Alt+Char in Mac??

    • Just click on the shortcut box and type the key combo you want. Netbeans will add the code for it

  2. Conejojojo

    Hi, nice post, but what about the others shortcuts, like when you type “sout+TAB” and then NetBeans generate “System.out.println(“”);”, is there some way to create this kind of shortcut? , I appreciate your help,

  3. Georgia Ingham

    Hi,
    NetBeans has a variety of pre-defined shortcuts that you can find by going to Help -> Keyboard Shortcuts Card.
    If you want to create your own then go (on Windows) Tools -> Options and then click the ‘Code Templates’ tab. From there you can change the shortcuts or define your own. On Mac you would do this in the Preferences window.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>