if you use sql management sudio... i found this tool a while ago.. ApexSQL code refactor.. works wonders.. quite a lot of options including code obfuscation and custom formats ... you'll thank me...
@verse_ Thank you @verse_ for finding free #SQLformatter@ApexSQL Refactor. Yes, it does work wonders :) Here are some tips&tricks on using SQL formatting options (video):
Check out our knowledgebase TOC too -
#SQLformatter#SQLTools
Have you seen the #SQLFormatter tool? It's part of #SQLPrompt, and allows you to format your own SQL code using a free online formatter, or try formatting your SQL code with a few pre-defined styles. Check it out for yourself: