Can someone please tell me how to turn off autoformatting in Visual Studio Whenever I change anything in the designer and go back to modify something in my HTML, my indents, etc are all gone and basically looked like someone threw my code in a trash compactor. How do I turn off this lovely feature

Re: Visual Studio Setup and Installation Autoformatting of HTML in Visual Studio 2003

Gabriel Lozano-Moran

Although you can turn it off in the Options dialog you will not be able to turn this off for 100% in Visual Studio .NET 2003, this was a known issue that was fixed in Visual Studio 2005.

Tools => Options => Text Editor => HTML/XML