Docs /Getting Started /Keyboard shortcuts
Getting StartedReference

Keyboard shortcuts

The shortcuts worth learning, grouped by what you're doing. ⌘ on Mac is Ctrl on Windows and Linux unless a row says otherwise.

Running SQL

ActionMacWindows / Linux
Run query⌘EnterCtrlEnter
Format SQL⇧⌘FCtrlShiftF
Run diagnostics⇧⌘DCtrlShiftD
Convert to pipe syntax⌥⌘PCtrlAltP
Convert from pipe syntax⌥⌘SCtrlAltS

Getting around

ActionMacWindows / Linux
Command palette⌘K or F1CtrlK or F1
Query history⇧⌘HCtrlShiftH
Compare queries⇧⌘CCtrlShiftC
Go to definitionF12F12
Peek definition⌘F12CtrlF12
Find references⇧F12ShiftF12
Rename symbolF2F2

Talking to Prism AI

ActionMacWindows / Linux
Toggle the Prism AI panel⌘ICtrlI
Edit selected SQL with AI⌃⌘ICtrlWinI

Editing

ActionMacWindows / Linux
Trigger completions⌃SpaceCtrlSpace
Accept ghost textTabTab
Expand SELECT * to columnsTabTab
Toggle comment⌘/Ctrl/
lowercase selection⌥⌘LCtrlAltL
UPPERCASE selection⇧⌘UCtrlShiftU

Tab expands SELECT * (or SELECT t.*) when the caret is on the * and the query already has a FROM clause; elsewhere it indents. The same expansion is on the right-click menu.

Managing tabs

ActionMacWindows / Linux
New query tab⌘ECtrlE
New notebook tab⇧⌘ECtrlShiftE
Close tab⌥⌘W or middle-clickCtrlAltW or middle-click

Exporting results

ActionMacWindows / Linux
Export to Sheets (update)⇧⌘GCtrlShiftG
Export to Sheets (append)⇧⌘ACtrlShiftA
Export dialog (Export to Google Sheets…; asks for Google Drive access first if it hasn’t been granted)⇧⌘XCtrlShiftX

Zooming the desktop app

Desktop app only. These are the View menu’s accelerators; in the browser, use the browser’s own zoom.

ActionShortcut
Zoom in⌘=
Zoom out⌘−
Reset zoom⌘0