Format SQL in SQL Server Management Studio

In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type.

I was wondering if there is yet a way to enable this standard feature in SQL Server Management Studio?

I’m working with some large-ish stored procs that are a mangled mess of poorly formatted SQL and it’d be nice if I could just go “Select All -> Format SQL”

3 Answers
3

Leave a Comment