Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>shandy-sqlfmtNew to Visual Studio Code? Get it now.
shandy-sqlfmt

shandy-sqlfmt

Preview

yassun7010

|
5,351 installs
| (0) | Free
A auto formatter for SQL files using shandy-sqlfmt
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

shandy-sqlfmt extension for VSCode

GitHub license Actions status Marketplace Version

A Visual Studio Code extension for shandy-sqlfmt. Available on the Visual Studio Marketplace.

icon

Usage

Install shandy-sqlfmt

Please install shandy-sqlfmt first.

This extension will automatically detect the sqlfmt command in your workspace, and if can't find it, it will find it in your $PATH.

Global install

pipx install shandy-sqlfmt[jinja]

Local install

# Use your virtualenv tool
cd workspace
python -m venv .venv
source .venv/bin/activate

pip install shandy-sqlfmt[jinja]

Example configuration

You can configure shandy-sqlfmt to format SQL or Jinja-SQL on-save by enabling the editor.formatOnSave action in settings.json, and setting shandy-sqlfmt as your default formatter.

{
  "[sql]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "yassun7010.shandy-sqlfmt"
  },
  "[jinja-sql]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "yassun7010.shandy-sqlfmt"
  }
}

Commands

Command Description
shandy-sqlfmt: Format Workspace Format all SQL files in workspace.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft