Is CSS Intellisense related in Razor related to CSS files?
Does a set of related css files in the layout, a la @Styles.Render("~/Content/css")
stop the css intellisense class in file view slave mode?
I'm asking because in one of my views, View.vbhtml
I typed:
<div class="
and there was no Intellisense recommending any of the css classes set in the linked css files.
I haven't tried without bundling - I'm guessing it's package related since VS 2012 should have intellisense css class, no?
source to share
No, intellisense won't work for linked files.
Styles in files .css
will not show up in ".Render" until run.
Finally, I've tested this over and over again, I can't even get the intellisense if I use:
...
<head>
<style type="text/css">
#myElement{color:red}
.myStyle{color:red}
</style>
</head>
...
in the _Layout.cshtml itself.
CALL WILD: If I'm wrong on this, I urge you to provide definitive proof and an example that we can replicate, otherwise we must conclude that in MVC Views
source to share
I observed a similar issue with VS2012 and ASP.NET MVC Razor views. While researching suggestions / answers and comments related to this topic, I was unable to apply everything that worked successfully in VS2012 ASP.NET MVC Razor projects. However, I have disclosed details from Microsoft Connect, acknowledging this as a not yet implemented feature, and also a solution that actually worked in my VS2012, where all other suggestions did not work in my VS2012 environment.
You can see this data here: CSS Intellisense not working for MVC 4 project in Visual Studio 2012 Ultimate
source to share