1. Home
  2. Keyboard Shortcuts
  3. NetBeans
Code Editors & IDEs

NetBeans Keyboard Shortcuts

94 keyboard shortcuts to help you develop java applications faster in NetBeans

NetBeans keyboard shortcuts

Developed by Apache, NetBeans is a widely used code editors & IDEs tool built to help users develop java applications.

For NetBeans users, mastering keyboard shortcuts is one of the fastest ways to boost productivity. Quick access to tools and commands keeps the creative flow unbroken.

Since NetBeans supports macOS, Windows, and Linux, this shortcuts reference is designed to help users on every supported operating system get up to speed quickly.

macOSWindowsLinux 94 SHORTCUTS 8 CATEGORIES
VISIT NETBEANS OFFICIAL WEBSITE ↗
SHOW SHORTCUTS FOR:
Jump to Section (8 sections)

Finding, searching, and replacing18 SHORTCUTS

Search word at insert point N/ACtrl+F3Ctrl+F3
Find next in file N/AF3F3
Find previous in file N/AShift+F3Shift+F3
Find in file N/ACtrl+FCtrl+F
Replace in file N/ACtrl+HCtrl+H
Find usages N/AAlt+F7Alt+F7
Find in projects N/ACtrl+Shift+FCtrl+Shift+F
Replace in projects N/ACtrl+Shift+HCtrl+Shift+H
Find usages results N/AAlt+Shift+UAlt+Shift+U
Turn off search result highlights N/AAlt+Shift+HAlt+Shift+H
Rename N/ACtrl+RCtrl+R
Convert selection to uppercase N/ACtrl+U+UCtrl+U+U
Convert selection to lowercase N/ACtrl+U+LCtrl+U+L
Toggle case of selection N/ACtrl+U+SCtrl+U+S
Paste formatted N/ACtrl+Shift+VCtrl+Shift+V
Show Clipboard History N/ACtrl+Shift+DCtrl+Shift+D
Jump to quick search field N/ACtrl+ICtrl+I
Copy file path N/AAlt+Shift+LAlt+Shift+L

Navigating through source code23 SHORTCUTS

Go to type N/ACtrl+OCtrl+O
Go to file N/AAlt+Shift+OAlt+Shift+O
Go to JUnit test N/ACtrl+Shift+TCtrl+Shift+T
Go to source N/ACtrl+Shift+BCtrl+Shift+B
Go to declaration N/ACtrl+BCtrl+B
Go to line N/ACtrl+GCtrl+G
Toggle add/remove bookmark N/ACtrl+Shift+MCtrl+Shift+M
Next bookmark N/ACtrl+Shift+.Ctrl+Shift+.
Previous bookmark N/ACtrl+Shift+,Ctrl+Shift+,
Next usage/compile error N/ACtrl+.Ctrl+.
Previous usage/compile error N/ACtrl+,Ctrl+,
Select next element N/AAlt+Shift+.Alt+Shift+.
Select previous element N/AAlt+Shift+,Alt+Shift+,
Select in Projects N/ACtrl+Shift+1Ctrl+Shift+1
Select in Files N/ACtrl+Shift+2Ctrl+Shift+2
Select in Favorites N/ACtrl+Shift+3Ctrl+Shift+3
Move caret to matching bracket N/ACtrl+[Ctrl+[
Next word match N/ACtrl+KCtrl+K
Previous word match N/ACtrl+Shift+KCtrl+Shift+K
Go backward/forward/to last edit N/AAlt+LeftAlt+Left
Go forward N/AAlt+RightAlt+Right
Go to last edit N/ACtrl+QCtrl+Q
Down Next/previous marked occurence N/AAlt+DownAlt+Down

Coding in C and C++2 SHORTCUTS

Go to de c laration N/AAlt+Shift+CAlt+Shift+C
Evaluate expression N/ACtrl+F9Ctrl+F9
The BuildBox Macropad Puts Keyboard Shortcuts at Your Fingertips! LEARN MORE →

Coding in Java12 SHORTCUTS

Generate code N/AAlt+InsertAlt+Insert
F i x all class imports N/ACtrl+Shift+ICtrl+Shift+I
F i x selected class's import N/AAlt+Shift+IAlt+Shift+I
F ormat selection N/AAlt+Shift+FAlt+Shift+F
Shift lines left / right N/AAlt+Shift+Left+RightAlt+Shift+Left+Right
Shift lines up / down / Copy lines up/down N/AAlt+Shift+Up+DownAlt+Shift+Up+Down
Rectangular Selection (Toggle) N/ACtrl+Shift+RCtrl+Shift+R
Inspect members/hierarchy N/ACtrl+F12Ctrl+F12
Inspect members/hierarchy N/AAlt+F12Alt+F12
Add c omment lines N/ACtrl+Shift+CCtrl+Shift+C
Remove comment lines N/ACtrl+/Ctrl+/
D e lete current line N/ACtrl+ECtrl+E

Compiling, testing and running9 SHORTCUTS

Compile package / file N/AF9F9
Build main project N/AF11F11
Clean and build main project N/AShift+F11Shift+F11
Set re q uest parameters N/ACtrl+QCtrl+Q
Create U nit test N/ACtrl+Shift+UCtrl+Shift+U
Run unit test on file N/ACtrl+F6Ctrl+F6
Run unit test on project N/AAlt+F6Alt+F6
Run main project N/AF6F6
Run main file N/AShift+F6Shift+F6

Opening and toggling between views14 SHORTCUTS

Switch between open documents by order used N/ACtrl+TabCtrl+Tab
Switch between open documents by order used N/ACtrl+`Ctrl+`
Maximize window (toggle) N/AShift+EscShift+Esc
Close selected window N/ACtrl+F4Ctrl+F4
Close selected window N/ACtrl+WCtrl+W
Close all windows N/ACtrl+Shift+F4Ctrl+Shift+F4
Open contextual menu N/AShift+F10Shift+F10
Switch between open documents by order of tabs N/ACtrl+PageUpCtrl+PageUp
Switch between open documents by order of tabs N/ACtrl+PageDownCtrl+PageDown
Reopen recen t ly closed file N/ACtrl+Alt+TCtrl+Alt+T
Toggle between editor types N/ACtrl+Alt+PageUpCtrl+Alt+PageUp
Toggle between editor types N/ACtrl+Alt+PageDownCtrl+Alt+PageDown
Zoom text in / out N/AAlt+MouseWheelAlt+MouseWheel
Toggle in s pect mode N/ACtrl+Shift+SCtrl+Shift+S

Debugging15 SHORTCUTS

Start debugging main project N/ACtrl+F5Ctrl+F5
Start debugging current file N/ACtrl+Shift+F5Ctrl+Shift+F5
Start debugging test for file N/ACtrl+Shift+F6Ctrl+Shift+F6
Stop debugging session N/AShift+F5Shift+F5
Continue debugging session N/AF5F5
Run to cursor location in file N/AF4F4
Step into N/AF7F7
Step over N/AF8F8
Step out N/ACtrl+F7Ctrl+F7
Go to called method N/ACtrl+Alt+UpCtrl+Alt+Up
Go to calling method N/ACtrl+Alt+DownCtrl+Alt+Down
Evaluate expression N/ACtrl+F9Ctrl+F9
Toggle breakpoint N/ACtrl+F8Ctrl+F8
New breakpoint N/ACtrl+Shift+F8Ctrl+Shift+F8
New watch N/ACtrl+Shift+F7Ctrl+Shift+F7

JSP Editor Code Templates1 SHORTCUT

Unknown N/ACtrl+SpaceCtrl+Space

Noticed errors or keyboard shortcuts that don't work? Please let us know about them here →

The BuildBox Macropad Unlocks Thousands of Keyboard Shortcuts For Any App

The BuildBox Macropad
Available early December

That's why the BuildBox Macropad is the Ultimate Shortcut Machine. One device with infinite shortcuts available at your fingertips, plus a HUGE display showing what each key does, and a magnet-powered zero-friction scroll wheel that moves through documents, video, audio and graphic editing apps like butter!

Enter your Email to get your hands on a launch batch BuildBox (limited: 200 available):

Keyboard Shortcuts for Similar Applications