Docs / Reference
Keyboard shortcuts
Updated
On Windows and Linux, use Ctrl where macOS uses ⌘. Press ? anywhere outside a text field (or choose Help → Keyboard Shortcuts, or Settings → About) to see this list in the app.
| Shortcut | What it does |
|---|---|
| ⌘T | New SQL tab on the current database |
| ⌘W | Close the tab (asks first if its SQL isn't saved). On macOS, ⇧⌘W closes the window |
| ⌘S | Save the tab as a script |
| ⌘, | Open Settings |
| ? | Show the keyboard shortcuts (outside a text field) |
| ⌘↵ | Run the query or script, or only the selected SQL |
| Ctrl+Space in the editor | Suggest tables and columns |
| ⌘F / ⌥⌘F in the editor | Find / find and replace |
| ⌘/ in the editor | Comment or uncomment lines |
| ↵ in the Ask box | Run, once the SQL is written |
| ⇧↵ in the Ask box | New line |
| esc in the Ask box | Clear the question |
| ⌘⇧M | Start or stop saying your question |
| ⌘⇧A in the Ask box | Switch between Quick and Investigate |
| esc while listening | Cancel voice input |
| ⌫ at the start of the Ask box | Remove the command or skill chip |
| / at the start of the Ask box | Open the command menu (↑ ↓ move, ↵ or Tab pick, esc close) |
/investigate | Investigate the question in several read-only steps (Investigate) |
/followup | Change the current query |
/new | Start fresh, ignore the last query |
/explain | Explain the current query in plain English |
/fix | Fix the current query or its error |
/improve | Review and improve the current query |
/skill-name | Add a saved skill's instruction to the question |
| ⌘-click / ⇧-click a table | Add to or remove from AI context / pick a range |
| Arrow keys, ↵, esc | Move through, choose in and close a right-click menu |
| ↵ in the Save script dialog | Save |
| esc | Close Settings or a dialog |
Something missing or unclear? Ask in Discussions.