C# Library to turn your SQL pretty.
Import the nuget package:
Install-Package SqlFormatter -Pre
Import the SqlFormatter namespace contained in SqlFormatter.dll.
var formatter = new Formatter("SELECT * FROM TEST");
var formattedSQL = formatter.Format();
- Formatting of querys with CREATE, ALTER, DROP
- A better way to format subquerys