› Apache NetBeans

Apache NetBeans Shortcuts

Apache NetBeans keyboard shortcuts for code editing, navigation, refactoring, running and debugging.

Source: Official documentation · Dataset date 2026-06

28
Shortcuts
4
Categories

Cheat sheet guide

Apache NetBeans shortcuts worth learning first

This page collects 28 searchable Apache NetBeans keyboard shortcuts across 4 categories. Start with the shortcuts for Editing, Navigation, Refactor & Search, Run & Debug, then print the cheat sheet once the important ones are worth keeping nearby.

  • Code completionCtrlSpace
  • Go to typeCtrlO
  • RenameCtrlR
  • Run projectF6
  • Show suggestions (hint)AltEnter
  • Comment / uncommentCtrl/

Editing

10 shortcuts
Code completion
CtrlSpace
Ctrl+Space
Show suggestions (hint)
AltEnter
Alt+Enter · Opt+Enter
Comment / uncomment
Ctrl/
Ctrl+/ · Cmd+/
Format code
AltShiftF
Alt+Shift+F · Opt+Shift+F
Fix imports
CtrlShiftI
Ctrl+Shift+I · Cmd+Shift+I
Duplicate line up
CtrlShiftUp
Ctrl+Shift+Up · Cmd+Shift+Up
Duplicate line down
CtrlShiftDown
Ctrl+Shift+Down · Cmd+Shift+Down
Move line up
AltShiftUp
Alt+Shift+Up · Opt+Shift+Up
Move line down
AltShiftDown
Alt+Shift+Down · Opt+Shift+Down
Delete line
CtrlE
Ctrl+E · Cmd+E

Navigation

6 shortcuts
Go to type
CtrlO
Ctrl+O · Cmd+O
Go to file
AltShiftO
Alt+Shift+O · Opt+Shift+O
Go to symbol
CtrlAltShiftO
Ctrl+Alt+Shift+O · Cmd+Opt+Shift+O
Go to declaration
CtrlB
Ctrl+B · Cmd+B
Go to line
CtrlG
Ctrl+G · Cmd+G
Open type hierarchy
CtrlShiftF6
Ctrl+Shift+F6 · Cmd+Shift+F6

Refactor & Search

5 shortcuts
Rename
CtrlR
Ctrl+R · Cmd+R
Find usages
AltF7
Alt+F7 · Opt+F7
Find
CtrlF
Ctrl+F · Cmd+F
Replace
CtrlH
Ctrl+H
Find in projects
CtrlShiftF
Ctrl+Shift+F · Cmd+Shift+F

Run & Debug

7 shortcuts
Run project
F6
F6
Run file
ShiftF6
Shift+F6
Debug project
CtrlF5
Ctrl+F5 · Cmd+F5
Toggle breakpoint
CtrlF8
Ctrl+F8 · Cmd+F8
Step over
F8
F8
Step into
F7
F7
Continue
F5
F5

Frequently asked questions

What is the fastest way to find Apache NetBeans shortcuts on this page?

Use the search box or press /, then type an action such as code completion.

Can I print this Apache NetBeans shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Which operating systems are included for Apache NetBeans?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.