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

Frank's SQL Formatter

Frankie Seabrook

|
8 installs
| (0) | Free
Format SQL, Frank's way
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Frank's SQL Formatter

A clean, opinionated SQL formatter for data professionals who want readable SQL.

Demo

Features

  • Formats SQL to a consistent, readable style
  • Smart handling of SELECT columns, JOINs, QUALIFY, and GROUP BY

Usage

  1. Open a .sql file in VS Code.
  2. Select the SQL you want to format (or leave nothing selected to format the whole file).
  3. Run the command:
    Command Palette → franks-sql-formatter
    or shortcut → ctrl+alt+f

Before:

SELECT a.id, a.name, b.amount, SUM(c.score) as total_score FROM users a LEFT JOIN orders b ON a.id = b.user_id INNER JOIN scores c ON a.id = c.user_id WHERE a.status = 'active' AND b.amount > 500 QUALIFY ROW_NUMBER() OVER (PARTITION BY a.id ORDER BY b.amount DESC) = 1 GROUP BY 1,2,3;

After

SELECT

    a.id,
    a.name,
    b.amount,
    SUM(c.score) AS total_score

FROM users a

LEFT JOIN orders b ON a.id = b.user_id
INNER JOIN scores c ON a.id = c.user_id

WHERE a.status = 'active'
    AND b.amount > 500

QUALIFY ROW_NUMBER() OVER (PARTITION BY a.id ORDER BY b.amount DESC) = 1

GROUP BY
    1,
    2,
    3;

Release Notes

0.0.1

Initial release of franks-sql-formatter

0.0.2

Minor: Update logo and README.

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