Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>SQL FormatterNew to Visual Studio Code? Get it now.
SQL Formatter

SQL Formatter

arniu

|
14,140 installs
| (1) | Free
Format SQL files using the sql-formatter package
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SQL Formatter for vscode

Format SQL files using the sql-formatter package.

Acknowledge

This was FORKED from https://github.com/kufii/vscode-sql-formatter and renamed to sql-formatter-vscode.

Configuration

sql-formatter.dialect: Choose which dialect to format with:

  • sql - Standard SQL, default
  • mariadb - MariaDB
  • mysql - MySQL
  • postgresql - PostgreSQL
  • db2 - IBM DB2
  • plsql - Oracle PL/SQL
  • n1ql - Couchbase N1QL
  • redshift - Amazon Redshift
  • spark - Spark
  • tsql - SQL Server Transact-SQL

sql-formatter.uppercase: Convert keywords to uppercase. Defaults to false.

sql-formatter.linesBetweenQueries: Number of linebreaks between queries. Defaults to 2.

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