Keyboard Shortcuts
Hammer is built around the keyboard. Most actions have shortcuts, and they follow conventions that macOS developers already know. Here's the full reference.
Editor
| Shortcut | Action |
|---|---|
| ⌘S | Save |
| ⌘W | Close tab |
| ⌃Tab | Next tab |
| ⌃⇧Tab | Previous tab |
| ⌘F1 | Toggle edit / view mode |
| F1 | Keyword help |
| ⇧F1 | Pretty print |
| ⌘F2 | Check syntax |
| ⌘F3 | Activate |
Code Commenting
Hammer supports multiple keyboard layouts for toggling comments. Whichever keyboard you use, one of these will work:
| Shortcut | Layout |
|---|---|
| ⌘/ | US |
| ⌘⇧7 | German (and similar) |
| ⌘ß | German |
| ⌘< | Comment lines |
| ⌘> | Uncomment lines |
⌘/ and ⌘⇧7 toggle: if the selected lines are commented, they get uncommented, and vice versa. ⌘< and ⌘> are explicit, one direction only.
Navigation
| Shortcut | Action |
|---|---|
| ⌘K | Open SuperBar |
| ⌘B | Toggle sidebar |
| ⌘⇧B | Toggle inspector |
| ⌘1–6 | Switch sidebar tab |
| ⌘7 | Inspector: Syntax check |
| ⌘8 | Inspector: Keyword help |
| ⌘9 | Inspector: Transport check |
| F4 | Value help / search |
Zoom
| Shortcut | Action |
|---|---|
| ⌘+ | Zoom in |
| ⌘- | Zoom out |
| ⌘0 | Reset zoom |
Systems
| Shortcut | Action |
|---|---|
| ⌘, | Open settings |
| ⌘⇧K | Manage systems |
| ⌘⇧G | Open in SAP GUI |
| ⌘N | Add new system (inside systems dialog) |
Dialogs
Standard macOS conventions apply inside dialogs. Return confirms, Escape cancels. In the Report Issue dialog, ⌘Return submits.
A note on SuperBar
⌘K deserves its own mention. SuperBar is Hammer's command palette. It indexes every menu bar action along with its shortcut, so if you forget a binding, ⌘K and a few keystrokes will find it. It's the fastest way to discover what's available without memorizing tables.