SqlOtter
← All featuresWrite & reuse SQL

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

  1. Draft or load SQL, then use completion, snippets, Format SQL and the Find panel as needed.
  2. Check the editor target and inserted object names before choosing a separate execution action.
SQL Editor with SELECT * FROM new_ and an open table-completion list of new_table7_copy1 names.
Real SQL Editor capture with a table-completion list open for unfinished SELECT text. The selected suggestion has not been inserted; target status is shown separately in Docs. Historical screenshot; UI icons have been updated.

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.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Open the SQL EditorCtrl+Shift+U⌘+Shift+UOpen or return to the SQL Editor; check its target and text because opening can refresh both.
Undo / redo text editsCtrl+Z / Ctrl+Shift+Z⌘+Z / ⌘+Shift+ZApply to undoable document edits, without rolling back executed SQL.
Find in SQLCtrl+F⌘+FWith SQL text focused, open its Find panel; other focused controls can route Find elsewhere.
Replace SQL textCtrl+H⌘+HThe default Replace action is defined, but its SQL-editor shortcut path still needs desktop verification. Open Find and expand Replace in the panel.
Format SQLCtrl+Shift+F⌘+Shift+FFormat the editor document text; review the result. Formatting does not execute SQL.
Trigger completionCtrl+Space⌘+SpaceRequest suggestions while SQL text is focused and completion is enabled; system shortcuts can intercept this chord.
Toggle SQL line commentsCtrl+/⌘+/With SQL text focused, add or remove -- on the current line or selected lines.
Delete the current SQL lineCtrl+Y⌘+YWith SQL text focused, remove the current line; this is not another comment shortcut.
Insert a table nameCtrl+Alt+I⌘+⌥+IOpen a chooser over currently open database tabs and insert a qualified backtick name; verify the editor target and dialect afterward.
Open the table-selection listCtrl+I⌘+IIn the SQL Editor, choose from open table tabs and insert that table name; this does not change the execution target.
Save SQL to saved historyCtrl+S⌘+SWith 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 fileCtrl+Alt+S⌘+⌥+SSave 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 fileCtrl+Alt+Shift+L⌘+⌥+Shift+LLoad a local file into the editor; loading does not execute it and can replace the current text.
Check SQL with the local parserCtrl+Alt+V⌘+⌥+VRun Local:SQL Validation where offered. A parser result does not prove server acceptance or query safety.
Hide / restore surrounding panelsCtrl+Shift+Alt+G⌘+Shift+⌥+GToggle the tree, history, AI and result layout around the editor; it does not delete results or history.
Toggle Terminal ModeCtrl+Alt+Shift+T⌘+⌥+Shift+TToggle the editor’s Terminal Mode where supported; Redis keyspaces use their native command path.
Clear editor text / terminal displayCtrl+Alt+L⌘+⌥+LClear normal editor text or the Terminal Mode display according to the active mode.
Close the SQL Editor tabCtrl+Alt+Shift+W⌘+⌥+Shift+WClose 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

  • SQL file
  • Statement
  • Snippet

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.

Try it now

Put database work back into one focused workspace.

Start a Personal trial ↗