Docs / Keyboard shortcuts
Keyboard shortcuts
MamaSQL is built for the keyboard. Symbols below use the Mac ⌘; on Windows and Linux, swap it for Ctrl. Press ? anywhere in the app to bring up this list, or ⌘ K for the command palette.
Editor
| Action | Shortcut |
| Execute query (or selection) | ⌘ ↵ |
| Trigger autocomplete | ⌘ Space |
| Format SQL | ⌘ ⇧ F |
| Toggle line comment | ⌘ / |
| Duplicate line / selection | ⌘ D |
| Move line up / down | Alt ↑ ↓ |
| Indent / outdent | Tab ⇧Tab |
| Wrap selection in brackets / quotes | ( [ " … |
| Switch editor tab | Alt 1–9 |
Navigation
| Action | Shortcut |
| Command palette | ⌘ K |
| Navigate suggestions / palette | ↑ ↓ |
| Show keyboard shortcuts | ? |
| Close popups & menus | Esc |
Results & data grid
| Action | Shortcut |
| Copy selected cell | Ctrl C |
| Select cell / edit cell | Click / Dbl-click |
| Context menu (tree / tables) | Right-click |