You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL Formatter is not Prettier. It has not been developed to be compatible with Prettier. Heck, the first version of SQL Formatter was released before Prettier existed.
I know there exists prettier-plugin-sql, which uses SQL Formatter under the hood, but I have no control over that project.
If you're interested in more Prettier-compatible SQL formatting solution, I suggest you try prettier-plugin-sql-cst. This doesn't support the ignore-comments, but there exists more of a chance that such a feature gets implemented.
In this project, the best one could hope for would be a feature where you mark both start and end of the code you don't want to be formatted, like:
There could be a point for implementing something like this, as it would help in working around scenarios where the formatter currently fails to produce a sensible output or even crashes. Like:
how to ignore formatter for block of sql
like this :
The text was updated successfully, but these errors were encountered: