开发者

PyCharm: auto-insert Django template closing-tags ( {% endif %} {% endfor %} , etc. ) option?

开发者 https://www.devze.com 2023-03-17 00:15 出处:网络
I\'ve yet to find a setting that will enable auto-insert开发者_C百科ion of these closing tags, similar to how closing HTML tags are handled.

I've yet to find a setting that will enable auto-insert开发者_C百科ion of these closing tags, similar to how closing HTML tags are handled.

Is this even possible?


Just hit tab after if

{% if<tab>

and you get

    {% if <cursor> %}

    {% endif %} 

This works for many tags: for, block, filter, spaceless, with, but inexplicably not blocktrans, autoescape, and comment changes to <comment></comment>

0

精彩评论

暂无评论...
验证码 换一张
取 消