Skip to content

VSCode extension for really nice T-SQL formatter - Poor Man's T-SQL Formatter

License

Notifications You must be signed in to change notification settings

piotrgredowski/poor-mans-t-sql-formatter-vscode-extension

Repository files navigation

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Rating

Poor Man's T-SQL Formatter - VS Code Extension (PG)

One of not too many, open source T-SQL formatters as an extension for VSCode.

IMPORTANT NOTE

This extension is only to make it possible to use Poor Man's T-SQL Formatter in VSCode. I am not going to modify source code and behavior of Poor Man's T-SQL Formatter anyhow. Idea behind this extension is to make this great SQL formatter working with the current versions of VSCode and Azure Data Studio.

If you'd have any problems with running this extension in any VSCode version - please raise an issue.

But if you'd like to change how code is formatted and playing with provided extension's config options doesn't work - I won't be able to help with that.

Cheers! ;)

History

This repository is (at least for now) heavily inspired by Poor Man's T-SQL Formatter - VS Code Extension authored by Tao Klerks. Also some parts of code are exactly the same as ones in mentioned repository.

Decision to create new VSCode Extension was driven by fact that original extension was not maintained for last 3 years. Also current version of mentioned extension is not working with modern versions of VSCode.

If it helps you

If you like this extension and it helps you - consider giving:

Marketplace

Extension can be found here.

TODO:

  • Clean up code.
  • Add tests to check if extension works for three latest minor versions of VSCode.
  • Provide better README.
  • Add support for taking configuration options from JSON/yaml file.
  • Provide pre-commit task. Here or in another repository.

About

VSCode extension for really nice T-SQL formatter - Poor Man's T-SQL Formatter

Resources

License

Stars

Watchers

Forks