Taming SQL Code: Finding the Perfect Formatter

Taming SQL Code: Finding the Perfect Formatter

As developers, we’ve all been there – stuck with a messy SQL code that’s hard to read and maintain. That’s why I’m on a quest to find the perfect SQL formatter that tidies up code without exploding it.

I’ve tried the formatter that comes with Microsoft’s VSCode PGSQL extension, and I love how it organizes my SQL code. But, I’m not sure if it’s open-source or a closed proprietary tool. My search for a similar open-source formatter has been unsuccessful so far.

That’s why I’m reaching out to the SQL community for help. If you know of a good SQL formatter that works in the CLI and tidies up code like Microsoft’s or Datagrip’s formatter, please share your experience with me.

In particular, I’m looking for a formatter that supports PostgreSQL and can be used in the command line. If you have any recommendations, please let me know in the comments.

Leave a Comment

Your email address will not be published. Required fields are marked *