Html auto formating

  • Thread starter Thread starter Seth
  • Start date Start date
S

Seth

How can I completely turn off the auto formatting of Html
in Visual Studio 7? I have tried all possible
combinations (at least I think I have) of the Tools /
Options / Text Editor / HTML XML / Formatting. This is a
big annoyance because with a rather large page it can be
very time consuming to reformat by hand, and very time
consuming to search through and work with the mangled
formatting that often happens do switching to the design
view. I do not use the design view to code, I simply use
it to see a quick display of what I have just hand
coded. I work with a team of eight .net developers and
none of them have a solution that works all of the time,
other then coding in Texpad. The only downfall to this,
for me since I don't use design view, is not having
intelli-sense. But as I get to know .net better and
better, having intelli-sense is not as big of a benefit
as auto formatting is an annoyance.
 
Tools....Options...Text Editor...HTML/XML...Format

Uncheck the checkboxes you find there. This does, in fact, turn off the
automatic formatting of HTML. If it is not for you, then you may have a bad
VS .NET installation.
 
The key words are "all of the time" and switching from
design to html view. We have eight developers each
with .net 1.0 and 1.1 all from different disks, and all
installations do the same thing. Many of the developers
have gotten used to the auto formatted style, and have no
problem with it. It seems to me that in fact the more I
change the formatting the more it is mangled when it
happens. I have disabled all options in the
option ....html/formatting menu and still experience the
effects, just less often.
 
Seth said:
The key words are "all of the time" and switching from
design to html view. We have eight developers each
with .net 1.0 and 1.1 all from different disks, and all
installations do the same thing. Many of the developers
have gotten used to the auto formatted style, and have no
problem with it. It seems to me that in fact the more I
change the formatting the more it is mangled when it
happens. I have disabled all options in the
option ....html/formatting menu and still experience the
effects, just less often.

I'm really not sure what you are trying to say, Seth. As I said in my
message, changing these checkboxes DOES do what the boxes indicate. If it
is not doing that for you, then you may have a bad installation.

 
Hello,

Thanks for your post. As I understand, you turned off all the HTML auto
formatting settings, however, the format of HTML file will also be changed
when switching between Design and HTML view. Please correct me if there is
any misunderstanding. I think more information is needed before moving
forward:

Could you please tell me the detailed sympton of the problem? Is it
possible to post a sample HTML file and the detailed steps to reproduce the
problem?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hello,

I did some more research and found that HTML reformatting is a group of
known bugs. The reformatting occurs when you switch between Designer View
and HTML View of your page.

I'm sorry that these bugs are causing difficulty. I did some investigation
and found that the development team did seriously consider these bugs while
writing Visual Studio .NET 1.1. The first thought was to add an option to
turn off the reformatting feature. Unfortunately, it turned out to be
deeply integrated in the code that makes the editor useful. So, it could
not be turned off. Nor could it easily be fixed. Any changes made to this
area of the code would definitely impact many aspects of the editor.

If they could go back in time and rethink that decision, things might be
otherwise. However, at the time, the development team looked at all the
information they had available and decided that trying to fix this for the
1.1 release would cause more harm than good.

Please try the following partial workarounds. You might find that they
reduce the frequency of these problems.

1) Undo
Each time you return to HTML view, immediately run Undo. The formatting
changes mostly take place when you switch from design view to HTML view and
these changes are mostly in a single undo entry. Calling undo then reverses
many of the changes.

2) Save
Saving the ASPX page just prior to switching to design view reduces the
amount of reformatting the next time you switch back to HTML view.

---
I know this is not a solution, but I hope you find that it helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thank you for your reply. These methods do help, but
most of all I am satisfied with the fact that this bug is
known by the Microsoft team.
 
Back
Top