Chuck Conway

In The craft

Visual Studio Reformatting my HTML..

April 30, 2004 · 1 minute read

One thing I hate about using Visual Studio 2002 and above, is Visual Studio Microsoftizes the HTML. There is an option to turn this off, but it doesn’t work.

I found a solution, which works but is a bit of a pain to use. The problem occurs when HTML is typed in the HTML viewer and then you switch to the Design view. When you switch back Visual Studio has reformatted your code by eliminating closing tags and capitalizing the HTML and HEAD tags. I feeling like throttling the computer when this happens.

By saving the document before you switch to the design view will stop Visual Studio from reformatting the code. Clicking on the Undo button will reverse the changes if you forget to save before switching to the design view.

The reformatting and the line numbers being turned off by default are most annoying.