BreadcrumbHomeResourcesBlog NetBeans Shortcuts and Cheat Sheet April 9, 2020 NetBeans Shortcuts and Cheat SheetJava Application DevelopmentOpen SourceWhile 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.Table of ContentsWhat Is NetBeans?IntelliJ vs. NetBeansNetBeans ShortcutsAdditional ResourcesTable of Contents1 - What Is NetBeans?2 - IntelliJ vs. NetBeans3 - NetBeans Shortcuts4 - Additional ResourcesBack to topWhat 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.Back to topIntelliJ vs. NetBeansWhile 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.SupportBecause 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.FunctionalityIntelliJ 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 ExperienceNetBeans 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 2023 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.Download NowBack to topNetBeans ShortcutsNetBeans 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 ShortcutsNetBeans has a variety of shortcuts for finding usages, finding and replacing in files and projects, and more.NetBeans Search ShortcutsActionWindowsOS XFind usagesAlt + F7Ctrl + F7Find usages (results)Alt + Shift +UCtrl + Shift + UFind / Replace in fileCtrl + F/H⌘ + F/RFind / Replace in projectsCtrl + Shift + F/H⌘ + Shift + F/HFind nextF3⌘ + GSelect in projects / files / favoritesCtrl + Shift + 1/2/3⌘ + Shift + 1/2/3NetBeans File Navigation ShortcutsNetBeans has file navigation shortcuts that allow developers to quickly open and navigate files and code.NetBeans File Navigation ShortcutsActionWindowsOS XOpen resource / Navigate to fileAlt + Shift + OCtrl + Shift + OOpen typeCtrl + O⌘ + OGo to lineCtrl + GCtrl+GRecent filesCtrl + Shift + TShift + ⌘ + TTab / File switcherCtrl + TabCtrl + TabNetBeans Text Editing ShortcutsNetBeans uses the following shortcuts to move, delete, copy, select and format code.NetBeans Text Editing ShortcutsActionWindowsOS XMove linesAlt + Shift + Up/DownCtrl + Shift + Up/DownDelete linesCtrl + E⌘ + ECopy / Duplicate linesCtrl + Shift + Up/DownAlt + Shift + Up/DownSelect identifierAlt + Shift + JCtrl + Shift + JFormat codeAlt + Shift + FCtrl + Shift + FNetBeans Code Navigation ShortcutsFor code navigation, NetBeans uses the following keyboard shortcuts to find usages, inspect code hierarchy, and open and navigate to type and member hierarchies.NetBeans Code Navigation ShortcutsActionWindowsOS XFind usages / References in workspaceAlt + F7Ctrl + F7Find usages resultsAlt + Shift + UCtrl + Shift + UInspect code hierachyAlt + Shift + F12Ctrl + Shift + F12Open / Navigate to declarationCtrl + B⌘ + BOpen / Navigate to type hierarchyAlt + F12Ctrl + F12Open / Navigate to member hierarchyCtrl + F12⌘ + F12NetBeans Refactoring ShortcutsFor refactoring, NetBeans uses the following keyboard shortcuts.NetBeans Refactoring ShortcutsActionWindowsOS XRenameCtrl + RCtrl + RSurround withAlt + EnterCtrl + EnterExtract local variableAlt + Shit + VCtrl + Shift + VExtract / Assign to fieldAlt + Shift + ECtrl + Shift + EExtract methodCtrl + Shift + MCtrl + Shift + MBack to topAdditional ResourcesWe 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 IDEIf you're looking for additional Java cheat sheets, be sure to check out the links below:Java 8 Cheat SheetDocker Commands Cheat SheetJava Collections Cheat SheetSpring Annotations Cheat SheetJVM Options Cheat SheetJava Streams Cheat SheetJava Regex Cheat SheetJUnit Cheat SheetJava 9 Modules Cheat SheetRxJava Cheat SheetJava Generics Cheat SheetSQL Cheat SheetMaven Options Cheat SheetGit Cheat SheetDownload the NetBeans Cheat SheetWant a one-page version of our NetBeans shortcuts? Click the button below to download our one-page NetBeans cheat sheet.DOWNLOAD CHEAT SHEETTry JRebel for NetBeansJRebel works great with NetBeans. Want to try it for free on your project? You can request a trial today by clicking the button below.Try JRebel for FreeBack to top