Docs / Keyboard shortcuts

← README

Keyboard shortcuts

On macOS use Cmd instead of Ctrl. Every shortcut can be changed in Settings › Keyboard shortcuts.

On keyboards that type a character with Shift (/ is Shift+7 on Italian and German ones) the shortcut takes Shift too: Ctrl+/ is Ctrl+Shift+7 there. AltGr always types its character: Windows reports it as Ctrl+Alt, so Ctrl+Alt with a symbol ([, @, {, \...) is never a shortcut outside macOS.

KeysAction
Ctrl+EnterRun the statement under the cursor (or the selection)
Alt+X, Ctrl+Shift+EnterRun the script
Ctrl+.Cancel the running statement (also in the command palette)
Ctrl+\Run into a new result tab
Ctrl+SpaceAutocomplete
Ctrl+/Comment / uncomment
Ctrl+Shift+FFormat the script (or the selection)
Ctrl+Shift+ASelect the statement under the cursor
Ctrl+Shift+EExplain the statement under the cursor
Ctrl+Shift+MQuery manager
Shift+Alt+Down, Shift+Alt+UpDuplicate the line
Alt+Up, Alt+DownMove the line
Ctrl+Shift+KDelete the line
Ctrl+Alt+Up, Ctrl+Alt+DownAdd a cursor above / below
Ctrl+Alt+F, Ctrl+Alt+Shift+F (macOS: ⌘⌥[, ⌘⌥])Fold / unfold everything
Ctrl+D, Ctrl+Shift+LSelect the next / every occurrence
Alt+dragRectangular selection
Ctrl+FFind and replace
Ctrl+S, Ctrl+OSave / open a .sql file
Ctrl+K, Ctrl+Shift+PCommand palette
Ctrl+BHide / show the navigator
Ctrl+T, Ctrl+W, Ctrl+Shift+TNew tab / close tab / reopen the closed tab
Ctrl+Tab, Ctrl+Shift+TabNext / previous tab
Ctrl+Shift+DSplit the editor / close the split
Ctrl+=, Ctrl+-, Ctrl+0Bigger / smaller / normal interface
Ctrl+1, Ctrl+2… Ctrl+9All connections / the projects in rail order
Ctrl+Alt+PageDown, Ctrl+Alt+PageUpNext / previous project
Ctrl+,Settings
F2, Enter, typingEdit the cell (data viewer, one-table queries)
Insert, Ctrl+D, DeleteAdd, duplicate, delete rows
Shift+DeleteSet the selected cells to NULL
Ctrl+Alt+D (macOS: ⌃⇧D)Fill the selected cells down from the first row
Ctrl+V, Ctrl+Shift+VPaste over the cells / as new rows
Ctrl+S, Ctrl+ZSave / undo data changes (grid focused)
Ctrl+Shift+CCopy the selection with headers
Ctrl+F, F7Find in the results / value panel (grid focused)
Ctrl+Alt+RRecord view of the focused row; ← → move through the rows
F5, F2, F4, DeleteNavigator: refresh, rename, edit the table, drop (after its confirmation)