Apache NetBeans macOS Shortcuts
| Action | macOS Shortcut |
|---|---|
| Editing | |
| Code completion | ⌃Space |
| Show suggestions (hint) | ⌥Enter |
| Comment / uncomment | ⌘/ |
| Format code | ⌥⇧F |
| Fix imports | ⌘⇧I |
| Duplicate line up | ⌘⇧Up |
| Duplicate line down | ⌘⇧Down |
| Move line up | ⌥⇧Up |
| Move line down | ⌥⇧Down |
| Delete line | ⌘E |
| Navigation | |
| Go to type | ⌘O |
| Go to file | ⌥⇧O |
| Go to symbol | ⌘⌥⇧O |
| Go to declaration | ⌘B |
| Go to line | ⌘G |
| Open type hierarchy | ⌘⇧F6 |
| Refactor & Search | |
| Rename | ⌘R |
| Find usages | ⌥F7 |
| Find | ⌘F |
| Replace | ⌃H |
| Find in projects | ⌘⇧F |
| Run & Debug | |
| Run project | F6 |
| Run file | ⇧F6 |
| Debug project | ⌘F5 |
| Toggle breakpoint | ⌘F8 |
| Step over | F8 |
| Step into | F7 |
| Continue | F5 |