# Django extension for Visual Studio Code

> Beautiful syntax and scoped snippets for perfectionists with deadlines

Source: https://talira.ai/catalog/django-extension-for-visual-studio-code-0d0v06v2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / editors](https://talira.ai/categories/developer-tools/editors), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [vscode-django](https://talira.ai/orgs/vscode-django.md)

A VS Code extension for [Django](https://talira.ai/catalog/django-h3z1mj1k.md) projects. Templates stay ordinary HTML files with the Django template syntax highlighted on top (tags, variables, filters and comments, even inside attributes, styles and scripts), so VS Code's HTML features and other HTML extensions keep working. In templates it adds go to definition and find references for template paths, blocks and custom tags (including django-cotton components), links from Django's tags and filters to the documentation for the project's Django version, snippets for templates and for each kind of Python file (models, views, forms, admin, URLs, migrations), and formatting through the tool the project already uses (djLint, djangofmt, djade or DjHTML). MIT licensed.

## Links

- GitHub: https://github.com/vscode-django/vscode-django

## Problems it solves

- Django template syntax highlighting in VS Code without losing HTML features
- jump from an extends or include tag to the template file in my editor
- snippets for Django models, views and forms
- format Django templates in my editor the same way as my pre-commit hooks

## Features

- Django template syntax highlighting inside regular HTML files
- go to definition for template paths, custom tags and template libraries
- find references for custom tags, blocks and template paths
- links from built-in tags and filters to the Django docs for the project's version
- template and per-file Python snippets
- formatting with djLint, djangofmt, djade or DjHTML
- django-cotton component navigation

## Limitations

- Formatting runs a local tool, so it isn't available in VS Code for the Web
- Open VSX carries an older version (1.8.0 from 29 Nov 2021) than the repository's 2.1 release

## Trust

Overall: 0.47 out of 1.
Signals: maintenance 0.79, adoption 0.46, momentum 0.14, community 0.49, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 28 commits in the last 90 days
- latest release 1.19 9 days ago
- 188 GitHub stars
- 16 contributors
- accepts sponsorship (Liberapay)
- backed by vscode-django

## Alternatives

- [Jinja for Visual Studio Code](https://talira.ai/catalog/jinja-for-visual-studio-code-w2vr9fe8.md): Syntax highlighting and snippets for the Jinja template language in VS Code
- [CSS Peek](https://talira.ai/catalog/css-peek-k84pr2a4.md): Peek at, jump to and hover over the CSS, SCSS and Less rules for a class or id in VS Code
- [Better Comments](https://talira.ai/catalog/better-comments-0pax5h7g.md): Color-coded alerts, queries, TODOs and highlights in your code comments in VS Code
- [Error Lens](https://talira.ai/catalog/error-lens-atxsdx2e.md): Shows errors and warnings inline at the end of the line in VS Code, with the whole line highlighted

## Sources

[^1]: https://github.com/vscode-django/vscode-django/blob/main/LICENSE (checked 24 Nov 2026)
