When I am editing VB code inside a .aspx file in Visual Studio 2010, my code is automatically indented in a bizarre way. I have searched through the options and can't find anything that fixes this. [I thought unchecking Pretty listing (reformatting) of code in Text Editor -> Basic -> VB Specific would for sure do the trick but it didn't]
Example -- here is the beginning of a .aspx page:
<%@ Page EnableSessionState="True" Language="VB" Strict="true" %>
<script language="VB" runat="Server">
Dim foo As String
If I go to the end of the "Dim foo" line and hit it will indent. If I fix the indentation, the next line will do the same thing.