This is the Nunjucks-supporting extension for vscode with complete features.
files.associations
"nunjucksTemplate.preserveEmptyLine": 3
(suggested at issue PR #30 by @sdegutis)
"files.associations": {
"*.html": "njk"
},
njk
is html file type"emmet.includeLanguages": {
"njk": "html"
},
"html.format.wrapLineLength": 120
"vsicons.associations.files": [
{ "icon": "nunjucks", "extensions": ["njk"], "format": "svg" }
],
"material-icon-theme.files.associations": {
"*.html": "nunjucks"
},
Trigger | Snippet |
---|---|
n-extends | {% extends '${name}' %} |
n-block | {% block ${name} %}{% endblock %} |
n-if | {% if condition %}{% endif %} |
n-for | {% for ${condition} %}{% endfor %} |
n-macro | {% macro ${name}() %}{% endmacro %} |