Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SQL in Python HighlighterNew to Visual Studio Code? Get it now.
SQL in Python Highlighter

SQL in Python Highlighter

eluc1a

|
48 installs
| (0) | Free
Syntax highlighting for SQL in Python strings marked with --sql
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SQL in Python Highlighter

This VS Code extension provides syntax highlighting for SQL code in Python triple-quoted strings when they are marked with --sql.

Usage

Add --sql to the beginning of your SQL block:

query = """--sql
SELECT *
FROM users
WHERE id = 123
"""
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft