Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

visual studio code - VSCode Linting ignores jinja template in HTML

I am using VSCode with Python3, Flask, "jinja(wholroyd.jinja)" plugin and "Linting on Save" function.

What I expect when "Linting on Save"

{% if question_list.has_next %}
        <li class="page-item">
               <a></a>
        </li>
{% else %}
        <li class="page-item disabled">
               <a></a>
        </li>
{% endif %}

Happens to my vscode

{% if question_list.has_next %}
<li class="page-item">
        <a></a>
</li>
{% else %}
<li class="page-item disabled">
        <a></a>
</li>
{% endif %}

I want to make indentation to {% %} jinja template engine There's nothinng information on the internet, How can I make it?

question from:https://stackoverflow.com/questions/65646011/vscode-linting-ignores-jinja-template-in-html

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...