v1.2.0 — first public release
Free, open-source T-SQL formatter for SSMS 21 and 22.
Features
- Rule-based engine (Microsoft ScriptDom) — offline, instant, understands all T-SQL
- Optional AI engine (Anthropic API, bring your own key) for free-form style instructions
- Classic (compact) and Modern (expanded) presets, plus fully custom options
- Leading or trailing comma placement
- Indent with tabs or spaces
- Preserves comments — repositioned next to the code they belong to
- Formats whole script or just the selection; single-step undo
Install
Download SsmsSqlFormatter.vsix below, close SSMS, double-click to install, restart SSMS.
Use Ctrl+Shift+Alt+F, right-click → Format T-SQL Script, or the Tools menu.
Settings: Tools → Options → Format T-SQL Script.
Note: Microsoft does not officially support extensions in SSMS 21/22 — use at your own risk.