CSS Intellisense not working for MVC 4 project in Visual Studio 2012 Ultimate

后端 未结 4 2114
失恋的感觉
失恋的感觉 2020-12-20 12:36

Have created a brand new Visual Studio 2012 Ultimate SP2 MVC4 project but unable to get CSS class selector intellisense to work?

When I type

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 13:06

    You are not going to get intellisense for CSS in VS2012 for Razor views. There is a workaround to use intellisense. Just create one test view(.aspx) using ASPX view engine and include your css file there. Now intellisense will work in new aspx view. All you have to do is copy paste the css class from aspx to Razor view(.cshtml or .vbhtml). I hope this helps.

提交回复
热议问题