MySQL Workbench Automatically Capitalized and Reformatted Section of SQL Script
Have you looked at 

Edit -&gt; Preferences -&gt; SQL Editor -&gt; Query Editor? 


There are a couple of "beautifier" and "capitalise" options there.