VSCODE不支持EJS

发布于 2025-01-19 22:36:18 字数 598 浏览 1 评论 0原文

当我尝试创建文件时,VSCODE不支持下拉列表中的EJ。我有EJS语言支持扩展,并且使用了在类似问题上建议的设置配置,但仍无法正常工作。我看到一个网站说该解决方案不再适用于当前版本的VSCODE。有已知的解决方案吗?这是我的设置配置。

编辑:我的错误是我自己的误解。我认为我需要通过下拉列表将文件保存为EJS文件,但是保存为HTML并嵌入标签是我所需要的。希望这对别人有帮助。

    "workbench.preferredDarkColorTheme": "Abyss",
    "workbench.colorTheme": "Tomorrow Night Blue",
    "editor.cursorBlinking": "phase",
    "[html]": {

        "editor.suggest.insertMode": "replace"
    },
    "files.associations": {
        "*.ejs": "html"
    },
    "emmet.includeLanguages": {
        "ejs": "html",
    },
    "html.format.templating": true
}```

VsCode is not supporting EJS in the dropdown when I try to create a file. I have the EJS language support extension and I used the setting configuration that was suggested on similar questions, yet it is still not working. I saw one website saying this solution no longer works on current versions of VsCode. Is there a known solution to this? Here are my setting configurations.

Edit: My mistake was my own misunderstanding. I thought I would need to save my files as an EJS file via the dropdown but saving as an html and embedding the tags was all I needed. Hope this helps someone else.

    "workbench.preferredDarkColorTheme": "Abyss",
    "workbench.colorTheme": "Tomorrow Night Blue",
    "editor.cursorBlinking": "phase",
    "[html]": {

        "editor.suggest.insertMode": "replace"
    },
    "files.associations": {
        "*.ejs": "html"
    },
    "emmet.includeLanguages": {
        "ejs": "html",
    },
    "html.format.templating": true
}```

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文