One of not too many, open source T-SQL formatters as an extension for VSCode.
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! ;)
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 you like this extension and it helps you - consider giving:
- ⭐ a star on github
- 📝 a review in VSCode marketplace
Extension can be found here.
- 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.