更新时间:2022-06-15 09:51:44
此时的价值......
For what it is worth at this point...
以上解决方案是仍然有效。但是,更简单的解决方案(我只在VS 2013中测试过)是右键单击任何给定的* .ejs文件,然后选择打开方式。在打开的对话框中,选择HTML(Web窗体)编辑器并将其选为默认值。
The above solutions are still valid. However an easier solution (that I have only tested in VS 2013), is to right-click any given *.ejs file, and Select "Open With". In the dialog that opens, select "HTML (Web Forms) Editor" and select it as default.
现在,当您打开EJS文件时,您将获得HTML的语法突出显示和智能感知。这不支持您对EJS代码段的支持。
Now, when you open your EJS files, you will get syntax highlighting and intellisense for your HTML. This does not give you support for EJS Code snippets.