When writing inline code in an .aspx file and some lines down closing a statement with <% } %>, Visual Studio tries to be nice but messes it up by rewriting it all. Is there any way of turning this rewriting off, but only for inline code?
When writing inline code in an .aspx file and some lines down closing a
Share
An alternate approach is to use CTRL-Z to undo the auto format operation. I happen to like this better than disabling the auto format altogether since VS’s style works most of the time for me. I use CTRL-Z a lot when I am trying to line things up to make the code easier to read. It might not work for you, but it is an option.