Nifty SQLFormat SQL in 20 dialects, including dbt and Jinja templates, with settings your whole team shares. Maintained. No sign-in. No telemetry. Works in VS Code, Cursor, Windsurf, VSCodium and other editors that use Open VSX. Features
Commands
Nifty SQL is the default formatter for
Team configuration:
|
| Setting | Default | What it does |
|---|---|---|
nifty.sql.dialect |
auto |
Dialect, or auto to use the file's language |
nifty.sql.keywordCase |
preserve |
preserve, upper or lower for keywords |
nifty.sql.dataTypeCase |
preserve |
Case for data types |
nifty.sql.functionCase |
preserve |
Case for function names |
nifty.sql.identifierCase |
preserve |
Case for table and column names |
nifty.sql.indentStyle |
standard |
standard, tabularLeft or tabularRight |
nifty.sql.logicalOperatorNewline |
before |
Line break before or after AND / OR |
nifty.sql.expressionWidth |
50 |
Width at which parenthesised expressions are split |
nifty.sql.linesBetweenQueries |
1 |
Empty lines between statements |
nifty.sql.denseOperators |
false |
a+b instead of a + b |
nifty.sql.newlineBeforeSemicolon |
false |
Put the closing ; on its own line |
nifty.sql.templating |
auto |
Jinja/dbt handling: auto, jinja or none |
nifty.sql.useConfigFile |
true |
Read .sql-formatter.json |
nifty.sql.showDialectInStatusBar |
true |
Show the dialect in the status bar |
Indentation (spaces or tabs, and width) follows your editor settings unless .sql-formatter.json sets it.
Install
- VS Code: search for "Nifty SQL" in the Extensions view, or install from the Visual Studio Marketplace.
- Cursor, Windsurf, VSCodium, Kiro, Antigravity: install from Open VSX.
Credits
Formatting is powered by the excellent open-source sql-formatter library (MIT).
Privacy
This extension collects no telemetry, needs no account and makes no network requests.
More Nifty tools
- Nifty Beautify: Format HTML in PHP, Blade & Twig: Format HTML inside PHP, Blade, Twig, Jinja, Handlebars, ERB and Liquid templates without breaking the template tags. (Open VSX)
- Nifty YAML: Formatter, Validator & Converter: Format YAML without losing comments (Kubernetes-style indents), sort keys, lint with yamllint, copy the key path, and convert to and from JSON. (Open VSX)
- Nifty JSON: Formatter, Validator & JSONPath: Format, minify, sort keys, query with JSONPath, copy paths, generate TypeScript types, and browse huge JSON files in a fast tree view. (Open VSX)
- Nifty XML: XPath, Formatter & XML to JSON: Evaluate XPath with namespaces, copy the XPath of any element, format, minify, check well-formedness and convert XML to JSON. (Open VSX)
- Nifty Data Viewer: CSV & Parquet Viewer with SQL: Open CSV, Parquet and JSON files as a fast table and query them with SQL, powered by DuckDB. Sort, page through millions of rows, and export to CSV, Parquet or JSON. (Open VSX)
- Nifty SQLite: SQLite Viewer & Query Editor: Browse and query SQLite databases: tables and views in the side bar, a fast grid for any table, SQL queries with results, and export to CSV or JSON, with no native modules. (Open VSX)
See all 18 Nifty tools at https://getnifty.dev


