Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SQL LitNew to Visual Studio Code? Get it now.
SQL Lit

SQL Lit

thebearingedge

|
31,621 installs
| (4) | Free
Syntax highlighting for SQL tagged template literals in JavaScript and TypeScript.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-sql-lit

Syntax highlighting for SQL tagged template literals in JavaScript and TypeScript.

Pairs nicely with the following packages:

  • postgres
  • slonik
  • @slonik/typegen
  • sql-template-strings

Main Features

SQL syntax highlighting is triggered in a couple of ways:

  • tagged template literals via a sql* or db* identifier
  • a .sql or .db method invoked as a template tag
  • template literal strings with a /* sql */ or /* db */ comment prefix

Samples

Basic Tag

Basic Tag

Tag Method

Tag Method

Interpolated Values

Interpolated Values

TypeScript

Type Argument

PL/PgSQL

PL/PgSQL

Slonik

Slonik Methods

Slonik Typegen

Slonik Typegen

Slonik Validation

Slonik Validation

Template Comment Prefix

Template Comment Prefix

File Types

  • .js
  • .jsx
  • .ts
  • .tsx
  • .vue

Advanced Language Support

None. This extension only offers syntax highlighting.

Be sure to follow best practices documented in your database driver package of choice to mitigate sql injection vulnerabilities!

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