gpt4 book ai didi

html - 如何在 Visual Studio Code 中同时自动完成 HTML 和 Django-HTML?

转载 作者:行者123 更新时间:2023-12-03 09:27:29 26 4
gpt4 key购买 nike

我已经在 Visual Studio Code 和相关联的 中安装了 Django 支持*/templates/*.html django-html 根据扩展要求。
然而,it can't auto-compete HTML Tags as I've done so .
如果我只是将 HTML 与其自身联系起来,那么 it can't intellisense Django Template code .
如何自动完成 两者 ?

最佳答案

我设法做到了:

  • 安装 Django 扩展
  • 将以下配置添加到我的工作区 settings.json 文件中:
        "emmet.includeLanguages": {
    "django-html": "html",
    }
  • 关于html - 如何在 Visual Studio Code 中同时自动完成 HTML 和 Django-HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61744003/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com