Reputation: 3252
When I'm editing an aspx file in Visual Studio, Intellisense is always wrong after i manually enter a "style" attribute.
Intellisense shows correctly when I start they "style" attribute:
However, when I end the style attribute, I expect Intellisense to stop displaying elements for "style", and show me normal ASP.NET control related elements. But, it continues to display "style" elements:
Since the "style" attribute has ended, I would expect the "normal" ASP.NET Intellisense to show up, like it does before the style attribute:
Am I missing something incredibly obvious? My workaround has always been just to write out the style attribute last, but it's pretty darn annoying.
Upvotes: 0
Views: 348
Reputation: 4854
I don't think you're missing anything incredibly obvious. It looks like this bug has existed since at least Visual Studio 2008.
I hadn't noticed this behaviour, probably because I use ReSharper which provides its own intellisense functionality.
The workarounds seem to be:
You could lodge a bug with Microsoft Connect but I have had little success there myself.
Upvotes: 2