Keyboard shortcuts
Every shortcut in one reference: palette, panels, grid navigation, editing, and Vim mode.
Press F1 in the app for the same list, searchable. On macOS, use Cmd where it says Ctrl.
Anywhere
| Keys | Action |
|---|
| Ctrl+P | Command palette: every action, table and snippet |
| Ctrl+O | Open or manage connections |
| Ctrl+T | Jump to a table or view |
| F1 | Searchable list of shortcuts |
| Alt+1…9 | Switch between open connections |
| Alt+PageDown / PageUp | Next or previous connection |
| Ctrl+1 … Ctrl+6 | Focus Explorer, editor, results, Inspector, agent, Results 2 |
| Ctrl+H / J / K / L | Move to the panel on the left, below, above, right |
| Ctrl+Shift+Z | Zoom the active panel |
| Ctrl+W | Close the active table tab, draft or panel |
| Ctrl+Shift+W | Close the active table tab from any panel |
| F5 | Refresh the active data |
| Ctrl+Shift+R | Resync the connection |
Explorer
| Keys | Action |
|---|
| j / k, gg / G, Ctrl+D / U | Move through the list |
| / | Filter the tree |
| Right or l | Expand a schema, group or table |
| Left or h | Collapse |
| Enter | Open a table, or show an object's details |
| y or Ctrl+C | Copy an object's definition |
| Esc | Close the details |
Results and Inspector
| Keys | Action |
|---|
| j / k, h / l | Move between rows and columns |
| 0 / $, gg / G | First or last column, first or last row |
| Ctrl+D / U | Page down or up |
| Alt+Left / Right | Previous or next page of a table |
| s / Shift+S | Sort ascending or descending |
| t | Cycle Data, Columns, Indexes, Keys, DDL |
| r | Refresh |
| i | Inspect the referenced row |
| / | Find in the loaded rows (n / N for next and previous) |
| f / Shift+F | Keep or exclude the selected value locally |
| u | Clear local filters |
| = / <> | Filter the table by the selected value |
| q / d | Draft SELECT WHERE / SELECT DISTINCT |
| Enter | Focus the Inspector |
| v | Start a rectangular selection |
| y or Ctrl+C | Copy the selection |
Right-click a column header to hide, move or auto-fit columns; right-click a cell to copy it as CSV, JSON, Markdown or SQL.
SQL editor
| Keys | Action |
|---|
| Ctrl+Enter | Run the selection or the statement under the cursor |
| Ctrl+Shift+Enter | Run all |
| Ctrl+Shift+E | Explain |
| Ctrl+Shift+A | Explain analyze |
| Ctrl+Shift+C | Cancel |
| Ctrl+N | New draft |
| Ctrl+Shift+H | Query history |
| Ctrl+Shift+O / Ctrl+S | Open / save a .sql file |
| Ctrl+Shift+K | Save the draft as a snippet |
| Ctrl+Space | Autocomplete |
| Ctrl+Shift+F | Format whitespace |
| Ctrl+/ | Comment or uncomment lines |
| Ctrl+D | Duplicate the selection or line |
| Alt+Up / Down | Move lines |
| Ctrl+F / Ctrl+Alt+F | Find / find and replace |
| Ctrl+G | Go to line |
| Ctrl+Y | Redo |
With Draft → Vim mode on, normal mode supports h j k l, w / b, 0 / $, gg / G, Ctrl+D / U, /, n / N, and i a I A to start typing.
Something unclear or missing? Tell us.