Registering extension EJS with visual studio and intellisense?

前端 未结 4 948
春和景丽
春和景丽 2021-02-19 03:07

does anyone know how i can map EJS to visual studio to act like a HTML file. I think i managed to do it but its got a lot of bloat in it.. Its basically an HTML file without the

4条回答
  •  我在风中等你
    2021-02-19 03:59

    For what it is worth at this point...

    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.

    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.

提交回复
热议问题