Apache NetBeans

Apache NetBeans Shortcuts

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

Source: Official documentation · Updated 2026-06

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
Show suggestions (hint)
AltEnter
Comment / uncomment
Ctrl/
Format code
AltShiftF
Fix imports
CtrlShiftI
Duplicate line up
CtrlShiftUp
Duplicate line down
CtrlShiftDown
Move line up
AltShiftUp
Move line down
AltShiftDown
Delete line
CtrlE

Navigation

6 shortcuts
Go to type
CtrlO
Go to file
AltShiftO
Go to symbol
CtrlAltShiftO
Go to declaration
CtrlB
Go to line
CtrlG
Open type hierarchy
CtrlShiftF6

Refactor & Search

5 shortcuts
Rename
CtrlR
Find usages
AltF7
Find
CtrlF
Replace
CtrlH
Find in projects
CtrlShiftF

Run & Debug

7 shortcuts
Run project
F6
Run file
ShiftF6
Debug project
CtrlF5
Toggle breakpoint
CtrlF8
Step over
F8
Step into
F7
Continue
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.

Does this page include Windows and Mac shortcuts for Apache NetBeans?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Code completion is Ctrl+Space on Windows and ⌃Space on macOS where available.

See also

No shortcuts match your search.