VS Code, Associate Jinja with HTML

photo of turned on laptop computer

Using VS Code, go to your settings.json file and add the following within the {} brackets.

"files.associations": {
    "*.jinja": "html",
    "*.jinja2": "html",
    "*.j2": "html",
    "*.njk": "html"
}

Have you tried this approach or something similar? Leave a comment if this helped or if you have another approach.

Discover more from Jorge Saldívar

Subscribe now to keep reading and get access to the full archive.

Continue reading