Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Formatting in Visual Studio 2008

Is it possible to turn off all HTML formatting in Visual Studio 2008? It just totally messes everything up. For example, I'll add a grid with columns, styles, etc. with them all indented and on separate lines. I'll switch to design view or split view and all the work I just did is on one line! It is so frustrating.

I've changed some things in the Options menu but is there any way to turn it off completely?

I don't use design view usually. I enter my tags and controls using source view but sometimes I will switch for a second to look at something.

like image 986
Keith Avatar asked Mar 02 '23 05:03

Keith


2 Answers

There are some formatting options under Tools-->Options-->Text Editor-->HTML-->Format while there doesn't seem to be an option to turn it off, there may be something there to define how you want it to format.

To reformat the document hit (CTRL+K,CTRL+D) or Edit-->Advanced-->Format Document.

like image 173
Brian Schmitt Avatar answered Mar 11 '23 13:03

Brian Schmitt


Don't use design view. A good asp.net developer doesn't need it. It only brings with it more headaches than benefits.

like image 36
Kon Avatar answered Mar 11 '23 13:03

Kon