Problem
Currently, the inline comment tag {# ... #} is only defined as ptj-com in jinja-snippets.json. However, this is valid for both Django and Jinja templates.
Solution
Create a new generic comment snippet in snippets/snippets.json with prefix ptcom to make it universally available:
"Template Comment": {
"scope": "html",
"prefix": "ptcom",
"body": [
"{# $0 #}"
],
"description": "Adds template comment tag"
}
Problem
Currently, the inline comment tag
{# ... #}is only defined asptj-cominjinja-snippets.json. However, this is valid for both Django and Jinja templates.Solution
Create a new generic comment snippet in
snippets/snippets.jsonwith prefixptcomto make it universally available: