使用visual studio和intellisense注册扩展EJS? [英] Registering extension EJS with visual studio and intellisense?
问题描述
有谁知道我如何将EJS映射到visual studio以像HTML文件一样运行。我认为我设法做到了,但它有很大的膨胀..它基本上是一个没有HTML和BODY标签的HTML文件..所以我选择了VS 2008中的UserControl,工具,选项,文本编辑器,文件扩展名和添加了EJS并将其添加为usercontrol。
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 HTML and BODY tags.. so i selected the UserControl in VS 2008, tools, options, Text Editor, file extension and added EJS and added it as usercontrol.
如果我选择html,那么在它检测到HTML和BODY之前它不会提供智能感知..
If i choose html then it doesn't offer intellisense until it detects a HTML and BODY ..
我的问题是否可以添加到此列表中?并创造我自己的??它需要为html和javascript提供intellisense,但仅此而已。
My question really is can i add to this list? and create my own?? It need to offer intellisense for html and javascript but nothing more.
我也可以创建某种代码来自动在另一台PC上安装EJS吗?
Also can i create some kind of code to install the EJS automatically on another pc?
推荐答案
此时的价值......
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.
这篇关于使用visual studio和intellisense注册扩展EJS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!