SQL Formatter & Format SQL on Save: PostgreSQL, MySQL, T-SQL, PL/SQL (Zovo) icon

SQL Formatter & Format SQL on Save: PostgreSQL, MySQL, T-SQL, PL/SQL (Zovo) Pro Available

Format SQL in VS Code without breaking it. Free, no sign-in, works offline.

MIT / Free Core · Zero telemetry · Works offline · Published by zovo

Pro adds Format All SQL Files in a Folder and Compare Two SQL Files Ignoring Formatting. Get Zovo Pro, $19 once →

Version
0.2.7
VS Code Installs
24
Open VSX Downloads
1,310
Updated
2026-11-20
Category
Databases
Extension ID
zovo.zovo-sql-formatter
Editors
VS Code, Cursor, Windsurf, VSCodium
Quick install CLI (VS Code · Cursor · Windsurf)
code --install-extension zovo.zovo-sql-formatter
cursor --install-extension zovo.zovo-sql-formatter
windsurf --install-extension zovo.zovo-sql-formatter

Why use it

  1. Never changes your code. Each result is checked token by token against your SQL. If anything other than whitespace or keyword case would change, the file stays as it is and a message names the line.
  2. Keeps what other formatters break: $$ and $BODY$ bodies, DELIMITER $$ blocks, N'...' strings, [names with spaces], ` root@localhost , =>, commented-out code, GO and / lines, psql \ commands and COPY ... FROM stdin` rows.
  3. 20 dialects, picked for you from the language mode, the file name or the text: PostgreSQL, MySQL, MariaDB, T-SQL, Oracle PL/SQL, SQLite, BigQuery, Snowflake, Redshift, Spark, Hive, Db2, DuckDB, Trino, ClickHouse and more.
  4. Stored procedures indented by block, with BEGIN/END, IF/ELSE, loops, DECLARE, EXCEPTION and package bodies.
  5. Large files work. A 5 MB script took 3.5 to 6 seconds in real VS Code tests (4 threads), with a Cancel button. VS Code stays responsive, because formatting runs outside the editor's process.

Common questions

Is SQL Formatter & Format SQL on Save free?

Yes. SQL Formatter & Format SQL on Save is free and MIT licensed.

How do I install SQL Formatter & Format SQL on Save?

Click "Install in VS Code" above, or search for zovo.zovo-sql-formatter in the Extensions view.

Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-sql-formatter/](https://vscode.zovo.one/extensions/zovo-sql-formatter/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).

SQLite viewer and editor, a SQLite3 database browser for .db and .sqlite files. Free, no paywall, no sign-in, works offline. Opens files read-only; click Enable editing to change cells and rows, run INSERT or UPDATE, and import a 1M-row CSV. Every change is staged with Undo, and Save makes a backup

327 installs v0.4.20 Pro

No Python needed. Schema, column stats, CSV export. Avro viewer, Apache Arrow viewer and Feather viewer that opens any .avro, .arrow, .feather or .ipc file as a fast paged table with search and CSV or JSON export. Free and offline.

45 installs v0.2.8 Pro