This video shows how to use ApexSQL Refactor and set formatting options under the parameters, columns, joins and flow control tabs, so your SQL code becomes more readable.
In this video, you can find the explanation for each formatting option under these tabs.