Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Python Inline Sql SyntaxNew to Visual Studio Code? Get it now.
Python Inline Sql Syntax

Python Inline Sql Syntax

Christopher Dignam

|
1,081 installs
| (1) | Free
Add SQL syntax highlighting for Python strings.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

python-inline-sql-syntax

Add SQL syntax highlighting for Python strings.

Features

Syntax highlighting for mutli-line strings

python sample with multi-line SQL

Supported syntax:

double_quotes_multi_line = """
select *
from users
where id = 82394;
"""
single_quotes_multi_line = '''
select *
from users
where id = 82394;
'''

Not supported:

single_line_strings = 'select * from users where id = 82394;'
f_strings_ = f'select * from users where id = 82394;'
f_strings_multi_line = f'''
select *
from users
where id = 82394;
'''

Development

VSCode instructions

Get up and running straight away

  • Press F5 to open a new window with your extension loaded.

Make changes

  • You can relaunch the extension from the debug toolbar after changing code in src/extension.ts.
  • You can also reload (Ctrl+R or Cmd+R on Mac) the VS Code window with your extension to load your changes.

Publish

vsce package
vsce login chdsbd
vsce publish <version>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft