Registering extension EJS with visual studio and intellisense?

前端 未结 4 942
春和景丽
春和景丽 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 04:11

    I was also searching for an answer to this question. Here is what I found...

    Source - Visual Studio 2008

    Obviously Visual Studio does not have support for the .blogtemplate extension. For awhile I hacked my way around it by renaming the files to have a html extension while editing, which sort of works. The main problem is that I keep forgetting to change the extension back before I start testing my changes - so this was causing unnecessary pain... I had a vague memory of configuring something like this before and found these instructions. For the sake of completeness I include them here also:

    1. Go to the Tools->Options menu.
    2. Pick Text Editor -> File Extension from the tree in the left part of the Options dialog.
    3. Type your file extension, .blogtemplate in my case, in the Extension text box.
    4. Select the appropriate editor from the Editor dropdown.
    5. Click Add and then Ok to close the dialog and re-open your files.

提交回复
热议问题