Overview
Poor Man's T-SQL Formatter is a free, open-source tool designed to format SQL (T-SQL) scripts. It handles complete multi-batch scripts, including object definition scripts like stored procedures and triggers. The tool provides options to cater to different formatting styles and standards, including the option to output "colorized" HTML code. It also offers a "minifier" option to strip comments and whitespace, suitable for obfuscation. Available as a SSMS and Visual Studio add-in/extension, Notepad++ plugin, command-line utility, Winforms app, WinMerge plugin, and JS library. Written in C#, it employs a pluggable design, intending to support other SQL dialects in the future. The formatter offers various integration points, including a command-line utility for bulk formatting and a WinMerge plugin for comparing SQL files based on content changes only.
