
NetBeans Shortcuts and Cheat Sheet
While not as popular as other Java IDEs, NetBeans is still a popular choice for developers who need a lightweight, free IDE. In this article, we’ll give an overview of the NetBeans IDE, then compare IntelliJ vs. NetBeans. Afterward, we'll give our list of helpful NetBeans shortcuts, and end with a link to our one-page NetBeans cheat sheet pdf.
- What Is NetBeans?
- IntelliJ vs. NetBeans
- Search Shortcuts
- File Navigation Shortcuts
- Text Editing Shortcuts
- Code Navigation Shortcuts
- Refactoring Shortcuts
- NetBeans Cheat Sheet
What Is NetBeans?
NetBeans is an open-source IDE used in Java, PHP, C/C##, HTML5 and JavaScript development.
Originally available as a commercial IDE, NetBeans was converted to open source by Sun in June, 2000. NetBeans was later acquired by Oracle who subsequently donated the NetBeans source code to the Apache project, where it now exists as a Top Level Apache Project.
How Many People Use NetBeans?
In our 2020 Java Developer Survey, 3.51% of respondents reported using NetBeans. IntelliJ was far and away the most popular IDE for Java developers at 81.7%.

Is NetBeans Free?
The NetBeans IDE and NetBeans Platform are free for commercial and non-commercial use within the stipulations provided in the “Apache License”.
Is NetBeans Open Source?
NetBeans is open source, meaning developers can download the entire source code for NetBeans and use it within the constraints of the Apache License terms of use.
IntelliJ vs. NetBeans
While IntelliJ is by far the more popular of the two IDEs, NetBeans does offer some unique advantages for developers. The primary benefit compared to IntelliJ IDEA, of course, is that the full version of NetBeans is free (IntelliJ offers a free option with limited features).
For students learning to code in Java, or for small or niche development teams looking for a low-overhead, lightweight IDE, NetBeans can be an attractive option. But compared to IntelliJ IDEA, NetBeans does have some shortcomings.
Support
Because NetBeans it’s open-source, and the comparative user base is lower, finding support options and resources can be a challenge. Paid support options do exist, like the Oracle Java Development Tools Support — which runs $1200 per month.
Functionality
IntelliJ IDEA offers a user-friendly, highly functional IDE out of the box. NetBeans, in comparison, requires added modules in order to reach comparable functionality – especially when developing enterprise level applications. But, for students or small development teams, NetBeans (or IntelliJ Community) can be a good fit.
User Experience
NetBeans has put a big effort into user experience in the last few years. In their latest release, for example, NetBeans introduced a user experience overhaul via the new FlatLaf and FlatLaf Dark themes. But, as a lightweight and open-source IDE, it doesn’t offer the same level of intuitive and user-friendly experience that makes IntelliJ so popular for developers.
What Java Tools Are You Using?
Our 2020 Java Developer Productivity Report looks at the technologies Java developers are using to develop programs today, and gives key insights into the problems they face during development.
NetBeans Shortcuts
NetBeans has a variety of shortcuts that make it easy to search, navigate files, edit text, and refactor code. The NetBeans shortcuts below can help developers streamline their coding efforts.
Netbeans Search Shortcuts
NetBeans has a variety of shortcuts for finding usages, finding and replacing in files and projects, and more.
Action | Windows | OS X |
---|---|---|
Find usages | Alt + F7 | Ctrl + F7 |
Find usages (results) | Alt + Shift +U | Ctrl + Shift + U |
Find / Replace in file | Ctrl + F/H | ⌘ + F/R |
Find / Replace in projects | Ctrl + Shift + F/H | ⌘ + Shift + F/H |
Find next | F3 | ⌘ + G |
Select in projects / files / favorites | Ctrl + Shift + 1/2/3 | ⌘ + Shift + 1/2/3 |
NetBeans File Navigation Shortcuts
NetBeans has file navigation shortcuts that allow developers to quickly open and navigate files and code.
Action | Windows | OS X |
---|---|---|
Open resource / Navigate to file | Alt + Shift + O | Ctrl + Shift + O |
Open type | Ctrl + O | ⌘ + O |
Go to line | Ctrl + G | Ctrl+G |
Recent files | Ctrl + Shift + T | Shift + ⌘ + T |
Tab / File switcher | Ctrl + Tab | Ctrl + Tab |
NetBeans Text Editing Shortcuts
NetBeans uses the following shortcuts to move, delete, copy, select and format code.
Action | Windows | OS X |
---|---|---|
Move lines | Alt + Shift + Up/Down | Ctrl + Shift + Up/Down |
Delete lines | Ctrl + E | ⌘ + E |
Copy / Duplicate lines | Ctrl + Shift + Up/Down | Alt + Shift + Up/Down |
Select identifier | Alt + Shift + J | Ctrl + Shift + J |
Format code | Alt + Shift + F | Ctrl + Shift + F |
NetBeans Code Navigation Shortcuts
For code navigation, NetBeans uses the following keyboard shortcuts to find usages, inspect code hierarchy, and open and navigate to type and member hierarchies.
Action | Windows | OS X |
---|---|---|
Find usages / References in workspace | Alt + F7 | Ctrl + F7 |
Find usages results | Alt + Shift + U | Ctrl + Shift + U |
Inspect code hierachy | Alt + Shift + F12 | Ctrl + Shift + F12 |
Open / Navigate to declaration | Ctrl + B | ⌘ + B |
Open / Navigate to type hierarchy | Alt + F12 | Ctrl + F12 |
Open / Navigate to member hierarchy | Ctrl + F12 | ⌘ + F12 |
NetBeans Refactoring Shortcuts
For refactoring, NetBeans uses the following keyboard shortcuts.
Action | Windows | OS X |
---|---|---|
Rename | Ctrl + R | Ctrl + R |
Surround with | Alt + Enter | Ctrl + Enter |
Extract local variable | Alt + Shit + V | Ctrl + Shift + V |
Extract / Assign to field | Alt + Shift + E | Ctrl + Shift + E |
Extract method | Ctrl + Shift + M | Ctrl + Shift + M |
Additional Resources
We hope this article gave you some insight into why developers use NetBeans, and some of the NetBeans shortcuts you can use while using this lightweight IDE. While we didn't have time to compare Netbeans to Eclipse this time around, this blog on the benefits of Eclipse vs. Netbeans is a good read. Or, if you want to learn more about the new features being added to NetBeans, and what to expect from future releases, be sure to read this article on the new features in the NetBeans IDE
If you're looking for additional Java cheat sheets, be sure to check out the links below:
- Java 8 Cheat Sheet
- Docker Commands Cheat Sheet
- Java Collections Cheat Sheet
- Spring Annotations Cheat Sheet
- JVM Options Cheat Sheet
- Java Streams Cheat Sheet
- Java Regex Cheat Sheet
- JUnit Cheat Sheet
- Java 9 Modules Cheat Sheet
- RxJava Cheat Sheet
- Java Generics Cheat Sheet
- SQL Cheat Sheet
- Maven Options Cheat Sheet
- Git Cheat Sheet
If you have additional requests for cheat sheets, be sure to reach out to us on Twitter at @JRebel_Java.
Download the NetBeans Cheat Sheet
Want a one-page version of our NetBeans shortcuts? Click the button below to download our one-page NetBeans cheat sheet.

Try JRebel for NetBeans
JRebel works great with NetBeans. Want to try it for free on your project? You can request a trial today by clicking the button below.