Q:

<%= autocompletes to <%@ Assembly= in Visual Studio

Using Visual Studio 2008 with the asp.net MVC framework.  In partial views, if I try typing "<%=" to print out some data from the model, it autocompletes the "<%" to "<%@ Assembly" (tagiing my "=" on the end).  Very annoying and I'm nearly sure it didn't used to, but can't think what I could have done to cause it.
Any ideas anyone?

A:

This is because the intellisense engine sees that you are not inside of a tag and is trying to help out with the normal stuff that goes outside of all tags, such as assembly registration.
The easiest way around this is to first add a div to your partial view and then put all other mark up in the div.  After you are done, you can remove the div if needed.

