Keyboard shortcuts
The full list. macOS uses ⌘; Windows / Linux use Ctrl.
Global
| Action |
Shortcut |
| Open command palette (search connections / actions) |
⌘+K |
| Open snippet palette |
⌘+J |
| Open Settings |
⌘+, |
| New editor tab |
⌘+T |
| Close current tab |
⌘+W |
| Next tab |
Ctrl+Tab |
| Previous tab |
Ctrl+Shift+Tab |
| Toggle theme (light / dark) |
⌘+Shift+D |
SQL editor
| Action |
Shortcut |
| Run statement (where the cursor is) |
⌘+Enter |
| Run only selection |
⌘+Shift+Enter |
| EXPLAIN (no execution) |
⌘+E |
| EXPLAIN ANALYZE |
⌘+Shift+E |
| Format SQL |
⌘+Shift+F |
Toggle line comment (--) |
⌘+/ |
Toggle block comment (/* */) |
⌘+Shift+/ |
| Autocomplete |
Ctrl+Space |
| Go to definition |
F12 |
| Find in current tab |
⌘+F |
| Find and replace |
⌘+Alt+F |
Multi-cursor
| Action |
Shortcut |
| Add cursor at next match |
⌘+D |
| Add cursor at all matches |
⌘+Shift+L |
| Cursor above |
⌘+Alt+↑ |
| Cursor below |
⌘+Alt+↓ |
| Cursor on click |
Alt + click |
| Clear all cursors |
Esc |
Tab switching
| Tab |
Shortcut |
| Open Live Ops |
⌘+Shift+L |
| Open Health |
⌘+Shift+H |
| Open History |
⌘+H |
Schema Browser
| Action |
Shortcut |
| Refresh schema |
⌘+R |
| Search the tree |
⌘+F (when focus is in the tree) |
| Expand/collapse a node |
→ / ← |
| Scan jsonb schema manually |
⌘+Shift+J |
Snippet palette
Opened with ⌘+J.
| Action |
Shortcut |
| Close |
Esc |
| Navigate the list |
↑ / ↓ |
| Insert selected snippet |
Enter |
| Jump to next placeholder (after insert) |
Tab |
| Jump to previous |
Shift+Tab |
EXPLAIN visualizer
| Action |
Shortcut |
| Open Recent Plans |
⌘+P (when focus in the visualizer) |
| Compare to previous plan |
Compare to previous button |
| Export plan JSON |
Export button |
JSONB editor
| Action |
Shortcut |
| Open the editor |
double-click a jsonb cell |
| Save |
⌘+S (asks for confirmation on prod) |
| Close without saving |
Esc |
| Search in Text mode |
⌘+F |
Live Ops
| Action |
Shortcut |
| Refresh sessions and slow queries |
⌘+R |
| Open the lock graph |
Sessions → Graph sub-tab |
Customizing shortcuts
In v1.0, shortcuts aren't editable in the UI, but you can import the entire VSCode keymap: Settings → Keymap → Import. Details: VSCode keymap import.
Next