Is there a way to make Visual Studio Code recognize HTML syntax in EJS files

后端 未结 7 1877
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 07:20

I am using Visual Studio Code on a Mac to work on Node.js applications.

Is there a way to make Visual Studio Code recognize EJS files as HTML markup? I didn\'t see any

7条回答
  •  無奈伤痛
    2021-01-31 07:37

    In Visual Studio 2015 Community I was able to associate the ejs extension with the html editor:

    Tools > Options > Text Editor > File Extension

    Enter "ejs" in the extension. Pick "HTML Editor" from the dropdown selection. Click Add. Click OK.

    If you have an ejs file open, close it and reopen.

提交回复
热议问题