VSCODE不支持EJS
当我尝试创建文件时,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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论