如何在VSCode中同时自动完成HTML和Django-HTML? [英] How to Auto-Complete both HTML and Django-HTML simultaneously in VSCode?

查看:57
本文介绍了如何在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.

但是,它无法像我一样自动竞争 HTML标记已经这样做了.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆