# Jinja for Visual Studio Code

> Syntax highlighting and snippets for the Jinja template language in VS Code

Source: https://talira.ai/catalog/jinja-for-visual-studio-code-w2vr9fe8
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: [William Holroyd](https://talira.ai/orgs/wholroyd.md)

A VS Code extension that adds syntax highlighting and snippets for the [Jinja](https://talira.ai/catalog/jinja-kvze87j3.md) template language. It has three language modes, Jinja, Jinja HTML and Jinja YAML, mapped to common file extensions (`.j2`, `.jinja`, `.jinja2`, `.html.j2`, `.yml.j2`, `.sls` and others), and other files can be mapped with `files.associations`. Emmet works in Jinja HTML, and script and style blocks comment as JavaScript and CSS. It leaves VS Code's built-in HTML and YAML languages alone, and it provides no language server, so there's no IntelliSense, go to definition or formatting. MIT licensed.

## Links

- GitHub: https://github.com/wholroyd/vscode-jinja

## Problems it solves

- syntax highlighting for Jinja2 templates in VS Code
- highlight Ansible or Salt .j2 template files in my editor
- Jinja snippets in VS Code

## Features

- 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

## Limitations

- 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)

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.52, adoption 0.36, momentum 0.05, community 0.31, backing 0.30, extensibility 0.00.

- last commit 58 days ago
- 10 commits in the last 90 days
- 63 GitHub stars
- 5 contributors
- backed by William Holroyd

## Alternatives

- [Django extension for Visual Studio Code](https://talira.ai/catalog/django-extension-for-visual-studio-code-0d0v06v2.md): Beautiful syntax and scoped snippets for perfectionists with deadlines

## Sources

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