SQL extension for Zed with formatting and linting — no external CLI tools required.
Formatter
Automatically formats SQL on save — keywords uppercased, each major clause on its own line.
-- before
select id, name from users where active = 1 order by name
-- after
SELECT id, name
FROM users
WHERE active = 1
ORDER BY nameSupports SELECT, INSERT, UPDATE with WHERE, GROUP BY, ORDER BY. Comments and string literals are preserved as-is.
Linter
Inline diagnostics as you type:
- Syntax errors highlighted immediately
UPDATEwithout aWHEREclause — warns before you accidentally update every rowSELECTwithout a column list (SELECT FROM users)
Uses DerekStride/tree-sitter-sql — the same grammar Zed uses internally for syntax highlighting.