Is it possible to disable auto formatting only for Html pages (not c#) on VS2010?

Posted by ensecoz on Stack Overflow See other posts from Stack Overflow or by ensecoz
Published on 2010-04-19T20:27:36Z Indexed on 2010/04/19 20:33 UTC
Read the original article Hit count: 138

Filed under:

During the design html pages or aspx pages, I like to do the pure coding without Html Designer. The problem is that I like to have the following format on html page for better readability.

<div>
  <% if (1 == 1) { %>
    Hello
  <% } else { %>
    World
  <% } %>
</div>

As you can guess, whenever you type '}' or ';' or etc, visual studio try to do the auto format and change to the following format

<div>
  <% if (1 == 1) 
     { %>
    Hello
  <% }
     else
     { %>
    World
  <% } %>
</div>

The question is "Is it possible to disable auto formatting just only for HTML pages on VS2010? (NOT for C# code, I still like to have auto formatting for C# pages)"

© Stack Overflow or respective owner

Related posts about VS2010