| What it is | Beautiful syntax and scoped snippets for perfectionists with deadlines | Syntax highlighting and snippets for the Jinja template language in VS Code | Peek at, jump to and hover over the CSS, SCSS and Less rules for a class or id in VS Code | Color-coded alerts, queries, TODOs and highlights in your code comments in VS Code |
| 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
| - Jinja, Jinja HTML and Jinja YAML language modes
- syntax highlighting and snippets
- maps .j2, .jinja, .jinja2, .html.j2, .yml.j2 and .sls files
- Emmet in Jinja HTML
- leaves the built-in HTML and YAML languages untouched
| - peek, go to definition and hover for CSS selectors
- CSS, SCSS and Less
- HTML, JSX/TSX, Vue, Svelte, Razor and Pug templates
- CSS modules and clsx/classnames arguments
- workspace symbol search for selectors
- works in VS Code for the Web
| - styles alerts, queries, TODOs, highlights and commented-out code
- configurable tags with colors, background, bold, italic, underline and strikethrough
- custom tags
- styles multiline comments and, optionally, plain text files
|
| 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
| - No language server: no IntelliSense, go to definition or formatting
- Jinja HTML is a separate language from HTML, so files must be mapped to it (by double extensions such as .html.j2, or files.associations)
| - Doesn't evaluate dynamic class values or CSS-in-JS runtime styles
- Only finds styles in the open workspace or an embedded style block
| - Changes to the tags need a restart of VS Code
|