QueryDeck Docs
Shortcuts

Keyboard cheat sheet

Every QueryDeck keyboard shortcut in one place. Print and pin.

For: everyone.

This page lists every default keyboard shortcut. Shortcuts can be customized in SettingsKeyboard.

Global

ActionShortcut
Command PaletteCmd+K
Open AI AssistantCmd+I
New connectionCmd+N
Open SettingsCmd+,
QuitCmd+Q
Help / DocsCmd+?
Search current viewCmd+F
Refresh schemaCmd+R

Window and tabs

ActionShortcut
New tabCmd+T
Close tabCmd+W
New windowCmd+Shift+N
Close windowCmd+Shift+W
Switch to tab 1, 2 ... 9Cmd+1 ... Cmd+9
Next tabCmd+] or Ctrl+Tab
Previous tabCmd+[ or Ctrl+Shift+Tab
Show / hide sidebarCmd+0

Query editor

ActionShortcut
Run queryCmd+Return
Run selected textCmd+Shift+Return
Cancel running queryCmd+.
Format SQLCmd+Shift+F
Find in editorCmd+F
Find and replaceCmd+Option+F
Toggle line commentCmd+/
Toggle block commentCmd+Option+/
Add cursor (multi-cursor)Option+Click
Indent lineTab
Outdent lineShift+Tab
Move line upOption+↑
Move line downOption+↓
Save current queryCmd+S
Save query as...Cmd+Shift+S
Explain queryCmd+Option+E
Optimize with AICmd+Option+O

Results grid

ActionShortcut
Copy selectionCmd+C
Copy as INSERTCmd+Shift+C
Copy as JSONCmd+Option+J
Select all rowsCmd+A
Export resultsCmd+Shift+E
Focus filter fieldCmd+L

Table Mode

ActionShortcut
Open table by nameCmd+K → type name
New rowCmd+N
Set cell to NULLCmd+Delete
Set cell to defaultCmd+Shift+Delete
Revert edited cellCmd+Z while editing
Commit pending changesCmd+Return
Discard pending changesCmd+Escape
Open preview before commitCmd+P
Next FKCmd+→ on the cell
Previous related rowCmd+←

Notebooks

ActionShortcut
Run current cellCmd+Return (inside cell)
Run current cell and move nextCmd+Shift+Return
Run all cellsCmd+Option+Return
Add SQL cell belowCmd+Shift+A
Add Markdown cell belowCmd+Shift+M
Move cell upCmd+Option+↑
Move cell downCmd+Option+↓
Duplicate cellCmd+D
Delete cellCmd+Backspace
Toggle Markdown previewCmd+E

AI Assistant

ActionShortcut
Open AI panelCmd+I
Submit promptCmd+Return (in chat)
New conversation in current tabCmd+Shift+I
Insert AI response into editorCmd+Option+Return (when reply has SQL)
Run AI response in editorCmd+Shift+Option+Return

Drift Mode

ActionShortcut
Switch to Drift ModeCmd+5
Refresh drift checkCmd+R
Run Fix on selected cardCmd+Return (with card focused)
Fix AllCmd+Shift+Return

QueryDeck has four primary modes per connection. Switch between them:

ModeShortcut
QueryCmd+1
Table ModeCmd+2
ERDCmd+3
DriftCmd+4
NotebookCmd+5

These work when you're connected and have the mode bar visible.

Customizing

SettingsKeyboard shows every shortcut and lets you rebind. Click a row, press the new combination, save.

Conflicts (two actions on the same combination) are flagged with a yellow warning. Resolve before closing.

To reset everything to defaults: SettingsKeyboardReset all shortcuts.

Vim mode

Vim keybindings inside the SQL editor are available behind a flag: SettingsEditorVim mode. The cell-level shortcuts and global shortcuts above are unchanged; only the in-editor movement uses Vim bindings when enabled.

Esc enters normal mode. i enters insert mode. The full set follows standard Vim — see :help inside the editor for the supported commands.

What's next