See and check the SQL inside your code strings, 100% offline. Free VS Code extension for JavaScript, TypeScript, Python, Go, PHP and Ruby.
const rows = await sql` SELECT id, email, ⚠ Trailing comma before FROM. FROM users WHERE id = ${id}`;
sql`...` tags, /* sql */ and --sql markers, db.query( / cur.execute( / QueryContext( calls, and strings that start with SELECT, INSERT, UPDATE, DELETE, WITH…( or quotes, trailing and double commas, empty WHERE, dangling AND/OR, keyword typos (FORM, SELCT, JION), INSERT column/value count, DELETE/UPDATE without WHERE"[go]": { "editor.semanticHighlighting.enabled": false } to your settings
SQL Format Desk Pro (1.0.1 or later) formats the SQL inside your JavaScript, TypeScript, Python, PHP, Go and Ruby strings in place, keeping ?, $1, :name, @name, ${}, f-string {}, %s, PHP $var and Ruby #{} intact, with a round-trip guard that refuses any change that would lose a token. It also formats procedure bodies, reads a team .sqlformat.json and adds lint hints.
Get SQL Format Desk Pro for $12
VS Code Extensions view → search zecro.sql-in-strings-desk.
Bugs and ideas: zecroapp@gmail.com
© 2026 Zecro LLC, Washington, USA. MIT License.