Sandeep Pawar makes it look good:
Last year I shared a blog post on formatting DAX expressions using DAX Formatter API (thanks to SQL BI). I extend the same idea in this blog to format all and save the formatted DAX in all measures in a semantic model using semantic link.
Click through for an important warning, as well as how to do this.