Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SQLCraft: SQL Formatter, Query Linter & Schema Builder Pro 🗄️New to Visual Studio Code? Get it now.
SQLCraft: SQL Formatter, Query Linter & Schema Builder Pro 🗄️

SQLCraft: SQL Formatter, Query Linter & Schema Builder Pro 🗄️

PirapaakaranPirathapan

| (0) | Free
| Sponsor
Instant SQL beautifier, minifier, dangerous query safety linter (flags DELETE/UPDATE without WHERE), and visual CREATE TABLE schema builder for PostgreSQL, MySQL, and SQLite.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SQLCraft: SQL Formatter, Query Linter & Schema Builder Pro 🗄️

Sponsor Publisher License: MIT

Instant SQL beautifier, single-line minifier, dangerous query safety linter, and visual CREATE TABLE DDL builder for PostgreSQL, MySQL, and SQLite directly inside Visual Studio Code.


✨ Features

  • ✨ Instant SQL Formatter: Automatically uppercases SQL keywords, breaks clauses (SELECT, FROM, JOIN, WHERE, GROUP BY, ORDER BY) cleanly, and indents column lists and conditions while preserving string literals.
  • 🛡️ Production Safety Linter: Real-time inline diagnostics catch catastrophic mistakes before execution:
    • Flags DELETE FROM without a WHERE clause.
    • Flags UPDATE ... SET without a WHERE clause.
    • Warns against SELECT * performance overhead, leading wildcard LIKE '%...' scans, and destructive DROP/TRUNCATE commands.
  • 🗜️ 1-Click SQL Minifier: Strip comments and compress multi-line queries into compact single-line strings for logs or ORM code.
  • 🎨 Visual CREATE TABLE Builder: Interactive studio to visually define columns, types, PRIMARY KEY, NOT NULL, and UNIQUE constraints and export dialect-specific DDL for PostgreSQL, MySQL, or SQLite.

🛠️ Usage

  • Format SQL: Open any .sql file (or highlight inline SQL in JS/TS/Python), right-click and choose SQLCraft: Format & Beautify SQL.
  • Minify SQL: Run SQLCraft: Minify SQL to Single Line from the Command Palette.
  • Build Schema: Run SQLCraft: Open Visual CREATE TABLE Schema Builder.

⚙️ Configuration

Setting Type Default Description
sqlcraft.indentSpaces number 2 Spaces used per indentation level.
sqlcraft.uppercaseKeywords boolean true Automatically uppercase SQL reserved keywords.
sqlcraft.enableSafetyDiagnostics boolean true Highlight dangerous SQL queries in real time.

💖 Support & Sponsor

If you love SQLCraft, please consider sponsoring ongoing development: 👉 Sponsor Pirapaakaran on GitHub

Connect on LinkedIn: Pirapaakaran Pirathapan


📄 License

MIT © Pirapaakaran Pirathapan

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft