microsoft / vscode-postgresql

PostgreSQL extension for VSCODE
Other
422 stars 53 forks source link

Feature Request: Enhance Formatting with Rules #51

Open gardner opened 5 years ago

gardner commented 5 years ago

The postgress DDL language formatters that are widely used are all self proclaimed "oppinionated" formatters:

  1. https://news.ycombinator.com/item?id=18087514
  2. https://news.ycombinator.com/item?id=18184731
  3. https://github.com/benjie/prettier-plugin-pg/issues

Not many formatters offer a way to specify subtle things like:

As you can see from the Hacker News conversations, developers are frustrated with the lack of flexibility with the formatters and by the lack of support from the Postgres team for any official parser. Microsoft is in the unique position to solve this developer problem by working with the Postgres team to produce the defacto formatter for Postgres. Perhaps, it could even work with MSSQL Server and MySQL/MariaDB.

Thank you for accepting my feature request.