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.

Customising your keyboard shortcuts in NetBeans IDE

57 sec read

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.

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.

Key Takeaways from Apache NetBeans Day UK

Apache NetBeans Day 2018 has come and gone. Whether you attended, watched it live or missed the event – we will take this opportunity...
Ovidijus Okinskas
2 min read

5 tips for getting the most out of Apache…

Apache NetBeans Day UK 2018 is fast approaching – Friday 27th April at the University of Greenwich. If you have not yet registered for...
Ovidijus Okinskas
1 min read

5 Reasons to Attend Apache NetBeans Day UK 2018

Apache NetBeans Day is fast approaching – here are 5 reasons to attend this fantastic annual event! The event will take place on Friday...
Ovidijus Okinskas
1 min read

4 Replies to “Customising your keyboard shortcuts in NetBeans IDE”

  1. 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,

  2. 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 *