The NetBeans IDE has so many wonderful features that makes a Java developer’s life easier. And many of these features have keyboard shortcuts attached to them. So I decided to make a list of the shortcuts that I think every developer should know.

Ctrl+O : Quickly go to a class
This shows a dialog that allows you to start typing the name of the class that you are looking for. You can then choose the class from a list of matched names.

Ctrl+Shift+I : Fix imports
Add any new imports that are necessary and remove unused ones at the same time. If a class name matches multiple possibilities, a dialog is displayed that allows you to choose which class to import.

Alt+Shift+F : Format selection
Format the selected code according to the rules that can be changed in the IDE Options > Editor > Formatting. This is also a handy way to format XML in a useful way.