Can Visual Studio Code use Emmet completion in razor .cshtml files

后端 未结 2 1575
滥情空心
滥情空心 2021-02-05 04:00

I\'m using Visual Studio Code (1.17.1, on MacOS 10.13 AND Windows 10) developing an asp.net core mvc web app using razor templating. Visual Studio Code supports Emmet (https://c

2条回答
  •  甜味超标
    2021-02-05 04:28

    According to this link, the corresponding language for *.cshtml files is razor, thus you need to specify it in the emmet mappings as follows:

    "emmet.includeLanguages": { "razor": "html" }

提交回复
热议问题