Write & reuse SQL
Write SQL with useful context close by.
Draft SQL with formatting, completion and file tools while checking the editor’s execution target.
A 2026 Build 1010 MySQL editor capture now shows real table suggestions and a separate target-status crop. Selection, complete keyboard workflow, other engines and release verification remain pending.
How it works
Open the SQL Editor for a database tab, review any prefilled query, and keep its own target visible as you edit.
A quick walkthrough
- Draft or load SQL, then use completion, snippets, Format SQL and the Find panel as needed.
- Check the editor target and inserted object names before choosing a separate execution action.

Default shortcuts
The listed defaults have different focus and menu owners. Check the active tab and Settings → Shortcuts; no editing key changes the execution target by itself.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Open the SQL Editor | Ctrl+Shift+U | ⌘+Shift+U | Open or return to the SQL Editor; check its target and text because opening can refresh both. |
| Undo / redo text edits | Ctrl+Z / Ctrl+Shift+Z | ⌘+Z / ⌘+Shift+Z | Apply to undoable document edits, without rolling back executed SQL. |
| Find in SQL | Ctrl+F | ⌘+F | With SQL text focused, open its Find panel; other focused controls can route Find elsewhere. |
| Replace SQL text | Ctrl+H | ⌘+H | The default Replace action is defined, but its SQL-editor shortcut path still needs desktop verification. Open Find and expand Replace in the panel. |
| Format SQL | Ctrl+Shift+F | ⌘+Shift+F | Format the editor document text; review the result. Formatting does not execute SQL. |
| Trigger completion | Ctrl+Space | ⌘+Space | Request suggestions while SQL text is focused and completion is enabled; system shortcuts can intercept this chord. |
| Toggle SQL line comments | Ctrl+/ | ⌘+/ | With SQL text focused, add or remove -- on the current line or selected lines. |
| Delete the current SQL line | Ctrl+Y | ⌘+Y | With SQL text focused, remove the current line; this is not another comment shortcut. |
| Insert a table name | Ctrl+Alt+I | ⌘+⌥+I | Open a chooser over currently open database tabs and insert a qualified backtick name; verify the editor target and dialect afterward. |
| Open the table-selection list | Ctrl+I | ⌘+I | In the SQL Editor, choose from open table tabs and insert that table name; this does not change the execution target. |
| Save SQL to saved history | Ctrl+S | ⌘+S | With the SQL Editor tab/text active, save to workspace SQL history. Generic Save can prioritize an active table; use the explicit Save To History menu item when unsure. |
| Save the SQL file | Ctrl+Alt+S | ⌘+⌥+S | Save the editor text to a local .sql file. This chord also has a connection-file action elsewhere; use the SQL Editor menu and verify the destination. |
| Load a SQL file | Ctrl+Alt+Shift+L | ⌘+⌥+Shift+L | Load a local file into the editor; loading does not execute it and can replace the current text. |
| Check SQL with the local parser | Ctrl+Alt+V | ⌘+⌥+V | Run Local:SQL Validation where offered. A parser result does not prove server acceptance or query safety. |
| Hide / restore surrounding panels | Ctrl+Shift+Alt+G | ⌘+Shift+⌥+G | Toggle the tree, history, AI and result layout around the editor; it does not delete results or history. |
| Toggle Terminal Mode | Ctrl+Alt+Shift+T | ⌘+⌥+Shift+T | Toggle the editor’s Terminal Mode where supported; Redis keyspaces use their native command path. |
| Clear editor text / terminal display | Ctrl+Alt+L | ⌘+⌥+L | Clear normal editor text or the Terminal Mode display according to the active mode. |
| Close the SQL Editor tab | Ctrl+Alt+Shift+W | ⌘+⌥+Shift+W | Close the editor tab; review unsaved file text and workspace state before closing. |
- Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
- On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.
Objects in this workflow
What to know
- Opening can refresh the editor target or prefill a current-table query; editing and local parsing do not execute SQL.
- Table-name tools use current open tabs, and a local parser result does not establish server acceptance or safety.