Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard shortcuts

Every shortcut below is also listed in the app: click the question-mark icon in the top bar, just left of the settings gear (its tooltip says Keyboard shortcuts). The list there is the same as this one, grouped the same way.

On macOS, read Cmd for Ctrl — and Ctrl keeps working too. In an interface language other than English, the app writes the key names as your keyboard does.

The command palette

Ctrl+Shift+P opens the command palette: the Find anywhere box with a > already typed. Type after it to pick a command — open or save a file, format the code, switch connection, change the theme, toggle a panel and more. Where a command has a shortcut of its own, the palette shows it beside the command. Typing > into Find anywhere (Ctrl+P) does the same.

Global

KeysDoes
Ctrl+PFind anywhere
Ctrl+Shift+PCommand palette
Ctrl+TNew query tab
Ctrl+WClose query tab
Ctrl+TabNext tab
Ctrl+Shift+TabPrevious tab
Ctrl+1…9Jump to tab
Ctrl+Shift+TReopen last closed tab
Ctrl+OOpen SQL file
Ctrl+SSave SQL file
Ctrl+Shift+SSave SQL file as
Ctrl+Shift+EToggle schema panel
Ctrl+Shift+AToggle AI panel
Ctrl+`Toggle terminal

Editor

KeysDoes
Ctrl+EnterRun query
Ctrl+SpaceAutocomplete
Ctrl+KInline AI edit
Ctrl+FFind in editor
Ctrl+HFind and replace
Ctrl+GGo to line
Ctrl+Shift+\Jump to the matching bracket or BEGIN/END
Ctrl+/Toggle line comment
Ctrl+Shift+/Toggle block comment
Ctrl+Shift+UToggle case
Ctrl+Shift+JJoin lines
Ctrl+DDuplicate line / selection
Ctrl+XCut line / selection
Ctrl+Alt+LFormat code
Ctrl+Alt+Shift+LFormat statement
Ctrl+Alt+JMake single line
Alt+↑ / Alt+↓Move line up / down
Alt+EnterApply the quick fix under the caret
Tab / Shift+TabIndent / outdent
Tab / Ctrl+→Take the inline prediction (→ too, at a line's end) / its next word

Ctrl+Enter runs the statement under the caret. To run every statement in the tab, use Run in the command palette.

Results grid

KeysDoes
Ctrl+FFind in results
Ctrl+GGo to row
Ctrl+CCopy
Ctrl+VPaste as staged edits
Ctrl+ASelect all
Ctrl+Home / Ctrl+EndFirst / last cell
EnterEdit cell
Tab / Shift+TabNext / previous cell while editing
Ctrl+EnterCommit edits
DelMark row for deletion
F6Go to the results toolbar
← / →Move along the toolbar (Esc returns to the grid)

Schema tree

KeysDoes
EnterOpen the selected table, column or object
Shift+F10Context menu for the selected row

AI panel

KeysDoes
EnterSend message
Shift+EnterNew line
Ctrl+↑ / Ctrl+↓Recall previous / next prompt

Terminal

KeysDoes
Ctrl+Shift+C / Ctrl+Shift+VCopy / paste

ER diagram

KeysDoes
Ctrl+FFind in the diagram

More

  • Query editor, Results grid and Schema explain what these keys act on.
  • Arrow keys, Enter and Esc work as you'd expect almost everywhere, so they're listed only where they do something you wouldn't guess.