79266057

Date: 2024-12-09 18:20:43
Score: 1
Natty:
Report link

The solution was to add "[html]": {"editor.foldingStrategy": "indentation"} to settings.json. This way, using indented html code inside blocks enables fold option. For example for the block "fot", the inner code should be indented:

{% block fot %}
    <div class="example">
        <p>Example</p>
    </div>
{% endblock %}

This way, block fot now is foldable/collapsable

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: darioeu