开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜