Forum Moderators: open

Message Too Old, No Replies

Turning off HTML formatting in Visual Studio.NET

         

pedrodepacos

7:00 pm on Jul 10, 2003 (gmt 0)

10+ Year Member



PLEASE, can someone tell me how to prevent Visual Studio from formatting my html code when I switch between html code and the design view. It's driving me crazy... everytime I switch to design view, then when I go back to the code view, the html code has changed. I am pretty anal about indenting my html code, and Visual Studio screws it up most of the time. Also, for some reason it deletes "runat=server" from the title Tag everytime I switch to design view.

I've player around with most of the Options in "Tools" without success. Please HELP, its getting really frustrating.

garann

9:27 pm on Jul 10, 2003 (gmt 0)

10+ Year Member



I found this option:

Tools ->
Options ->
Text Editor ->
HTML/XML ->
Format ->
Apply Automatic Formatting - When switching from Design to HTML/XML view

Does unchecking that fix it?

chrisv

9:01 pm on Jul 26, 2003 (gmt 0)

10+ Year Member



Thank you!

I have been fighting this annoyance for a few weeks.

Chrisv

pedrodepacos

3:25 am on Sep 2, 2003 (gmt 0)

10+ Year Member



I thought that this technique may have worked, but today I had to spend the last hour reformatting my code so that I could understand it. This is driving me crazy and although it only happens every once in awhile, It takes me a long time to undo how VS formats my code.

I've also installed a patch for VS.NET that I was told would prevent automatic formatting (and the deletion of runat=server in the TITLE Tags), but I guess it doesn't.

Please if anyone knows the answer to this frustrating problem, please let the rest of us know.