You can beatify/uglify an SQL with TablePlus.
- Open SQL Query Editor and Paste your SQL here (SQL button on the top left of the workspace).
- Command + A to select all the text.
- Hit Command + I to beautify the SQL.
- Hit Command + Shift + I to uglify the SQL.
You can also do it by click the button bellow the Windows.
Need a good GUI tool for PostgreSQL? Check out TablePlus. It’s native, beautiful, and available for free.
Not on Mac? Download TablePlus for Windows.