Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>SQL Formatter & Query Beautifier (by MagnusR9)New to Visual Studio Code? Get it now.
SQL Formatter & Query Beautifier (by MagnusR9)

SQL Formatter & Query Beautifier (by MagnusR9)

MagnusR9

| (0) | Free
Zero-dependency SQL formatter supporting full-document and selection formatting, uppercase keywords, CTEs, and modern SQL dialects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SQL Formatter & Beautifier (PostgreSQL, MySQL, DuckDB, T-SQL)

Fast, zero-dependency SQL formatter for VS Code, Cursor, and Windsurf.

Features

  • Full Document & Selection Formatting: Format the entire .sql file (Shift+Alt+F) or only your highlighted SQL query (Format Selection).
  • Smart Keyword Uppercasing: Automatically capitalizes SQL keywords while preserving string literals, identifiers, and comments.
  • Modern Dialect Safe: Works cleanly with PostgreSQL JSON operators (->, ->>), DuckDB queries, CTEs (WITH), and Window functions (OVER (PARTITION BY ...)).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft