Format SQL Code on opening file
It would be awsome if there was an option that would format an SQL Script automatically after opening it in SSMS / VS. So if you load a file it would be formatted automatically with your selected formatting style. It would be great too if this auto format option could be switched on and off in the Options.
![](https://secure.gravatar.com/avatar/f0a6df6cde7f3c36edb4657b3fa8cee8?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Adam Wenger commented
Similarly I’d Love to see format on save; it reduces a barrier our team has with “forgetting” to format their code, that way we are checking in & deploying consistently formatted code
-
kevriley commented
I like the idea, but can see how it would get annoying.
Definitely have the option to turn this off - for those of us working with source control, you don't want a load of pending changes just because you looked at a script.