Skip to content

Keyboard shortcuts

Shortcuts act on the active window or the control that has focus. Commands become available when the current connection, selection, or operation supports them.

The tables use ⌘ for Command, ⌥ for Option, ⇧ for Shift, and ⌃ for Control. For a task walkthrough, see use TableAI from the keyboard.

Command Shortcut
TableAI › Settings… ⌘,
File › New Connection… ⌘N
Window › Show Connections ⌘0
View › Query History ⌘⇧H
Window › Activity Log ⌘⌥L

See the settings reference for preferences and their defaults.

Command Shortcut
Query › Run Query, Run Current, or Run Selection ⌘R
Run from the SQL editor ⌘Return
Query › Run All ⌘⌥R
Query › Cancel Query ⌘.
Query › Open Query in New Tab ⌘⇧R
Query › Save Query ⌘⇧S
Query › Iterate with AI…, when available ⌘K

With multiple statements, Run Current executes the statement at the cursor. A text selection changes that command to Run Selection. Run All executes the full editor content. See write and run SQL for execution, cancellation, and history.

These commands act on the focused SQL editor, including SQL editors in dialogs.

Command Shortcut
Query › Format SQL ⌘⌥F
Query › Toggle Comment ⌘/
Query › Indent ⌘]
Query › Outdent ⌘[
Query › Duplicate Line ⌘D
Query › Move Line Up ⌘⌥[
Query › Move Line Down ⌘⌥]
Query › Delete Line ⌘⇧K
Show completions ⌃Space or ⌥Space
Command Shortcut
Tab › Close Tab ⌘W
Tab › Reopen Closed Tab ⌘⇧T
Tab › Show Previous Tab ⌘⌥←
Tab › Show Next Tab ⌘⌥→
Select a tab by position ⌘1 through ⌘9

Click the grid before you use these shortcuts. During a cell text edit, navigation and text shortcuts act inside that editor.

Action Shortcut
Move one cell Arrow keys
Move to the next or previous cell Tab or ⇧Tab
Extend the selection ⇧ + arrow key
Move to an edge of the loaded results ⌘ + arrow key
Extend the selection to an edge ⌘⇧ + arrow key
Move one visible page up or down Page Up or Page Down
Extend the selection by a page ⇧Page Up or ⇧Page Down
Move to the first or last cell Home or End
Extend the selection to the first or last cell ⇧Home or ⇧End
Select the active row ⇧Space
Select all cells ⌘A
Copy the selection ⌘C
Paste into editable cells ⌘V
Edit the active cell Return
Open or close Quick Look Space
Clear the selection; cancel an active cell edit Esc
Duplicate the selected row ⌘⇧D
Stage row deletion Delete, Forward Delete, or ⌘Delete
Undo a staged operation ⌘Z
Redo a staged operation ⌘⇧Z
Apply staged changes ⌘S

Apply writes staged changes to the database. Review them first using Preview SQL. For cell inspection and selection, see work with query results. If editing is unavailable, check read-only results.

The expanded cell editor has its own shortcuts.

Action Shortcut
Find in value ⌘F
Show invisibles ⌘⇧I
Copy value ⌘⇧C
Download value ⌘S
Apply the cell draft ⌘Return
Cancel Esc
Command Shortcut
File › Import Data… ⌘⇧I
File › Export Data… ⌘⇧E
Toggle Evidence in an AI Analysis report ⌘⌥I

See import and export data for the transfer review steps.