Using SQL Formatter: practical guide
Make long queries reviewable
Formatting puts each clause on its own line and indents nested parts, which makes a long query easier to read, review and debug. It is a good habit before you share a query or paste it into a pull request.
Formatting does not run or check the query
The formatter changes only the layout. It does not execute the SQL and does not confirm that table names, columns or syntax are correct for your database, because dialects differ. Test the query in your own environment.