如何在VSCode中同时自动完成HTML和Django-HTML? [英] How to Auto-Complete both HTML and Django-HTML simultaneously in VSCode?
本文介绍了如何在VSCode中同时自动完成HTML和Django-HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已在 VSCode 中安装了Django支持,并根据扩展要求将 */templates/*.html 与 django-html 相关联
I've installed Django support in VSCode,and associate */templates/*.html with django-html as the extension demands.
However, it can't auto-compete HTML Tags as I've done so.
如果我只是将HTML与自身关联,则它无法智能感知 Django模板代码.
And if I just associate HTML with itself, then it can't intellisense Django Template code.
所以任何人都可以帮助我有关自动完成两者?
So anyone can help me about auto-completing both??
推荐答案
我设法通过以下方式做到这一点:
I managed to do so by:
-
安装 django支持
将以下配置添加到我的工作区settings.json:
add following configuration to my workspace settings.json:
"emmet.includeLanguages": {
"django-html": "html",
}
这篇关于如何在VSCode中同时自动完成HTML和Django-HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文