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

GrayCat SQL Formatter

Adam Rybak

|
12,355 installs
| (3) | Free
A VSCode formatter extension for SQL scripts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GrayCat SQL Formatter


An SQL formatting extension for Visual Studio Code. This extension was designed in lieu of a highly configurable formatter engine not being available on the Marketplace.

Please report issues on GitHub.


Configuration Options

Blocks

  • Max Width (possible values: 0 to 65535, default: 80) Ajusts the maximum character width of a block before it is broken up across lines.

Case

Transforms the case of statements.

  • Possible values: Uppercase, Lowercase, Unchanged
    • Line Comments (default: Unchanged)
    • Block Comments (default: Unchanged)
    • String Values (default: Unchanged)
    • Literals (default: Unchanged)
    • Keywords (default: Uppercase)
    • Functions (default: Uppercase)
    • Identifiers (default: Lowercase)
SELECT table_name.identifier AS [Literal],
       FUNC(*) -- line comment
FROM table_name /* block comment */
WHERE table_name.field = 'String Value'

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