Html auto formating

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seth

    Html auto formating

    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.
  • Scott M.

    #2
    Re: Html auto formating

    Tools....Option s...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.


    "Seth" <ssauten@hotmai l.com> wrote in message
    news:f59b01c3bd c3$eaa65eb0$a60 1280a@phx.gbl.. .[color=blue]
    > 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.[/color]


    Comment

    • Seth

      #3
      Re: Html auto formating

      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.[color=blue]
      >-----Original Message-----
      >Tools....Optio ns...Text Editor...HTML/XML...Format
      >
      >Uncheck the checkboxes you find there. This does, in[/color]
      fact, turn off the[color=blue]
      >automatic formatting of HTML. If it is not for you, then[/color]
      you may have a bad[color=blue]
      >VS .NET installation.
      >
      >
      >"Seth" <ssauten@hotmai l.com> wrote in message
      >news:f59b01c3b dc3$eaa65eb0$a6 01280a@phx.gbl. ..[color=green]
      >> How can I completely turn off the auto formatting of[/color][/color]
      Html[color=blue][color=green]
      >> 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[/color][/color]
      a[color=blue][color=green]
      >> 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[/color][/color]
      use[color=blue][color=green]
      >> 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.[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Scott M.

        #4
        Re: Html auto formating


        "Seth" <ssauten@hotmai l.com> wrote in message
        news:fc5d01c3be 24$dd79e840$a60 1280a@phx.gbl.. .[color=blue]
        > 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.[/color]

        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.

        [color=blue][color=green]
        > >-----Original Message-----
        > >Tools....Optio ns...Text Editor...HTML/XML...Format
        > >
        > >Uncheck the checkboxes you find there. This does, in[/color]
        > fact, turn off the[color=green]
        > >automatic formatting of HTML. If it is not for you, then[/color]
        > you may have a bad[color=green]
        > >VS .NET installation.
        > >
        > >
        > >"Seth" <ssauten@hotmai l.com> wrote in message
        > >news:f59b01c3b dc3$eaa65eb0$a6 01280a@phx.gbl. ..[color=darkred]
        > >> How can I completely turn off the auto formatting of[/color][/color]
        > Html[color=green][color=darkred]
        > >> 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[/color][/color]
        > a[color=green][color=darkred]
        > >> 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[/color][/color]
        > use[color=green][color=darkred]
        > >> 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.[/color]
        > >
        > >
        > >.
        > >[/color][/color]


        Comment

        • Tian Min Huang

          #5
          Re: Html auto formating

          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 misunderstandin g. 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.

          Comment

          • Tian Min Huang

            #6
            Re: Html auto formating

            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.

            Comment

            • Tian Min Huang

              #7
              Re: Html auto formating

              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.

              Comment

              • Seth

                #8
                Re: Html auto formating

                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.[color=blue]
                >-----Original Message-----
                >Hello,
                >
                >I did some more research and found that HTML[/color]
                reformatting is a group of[color=blue]
                >known bugs. The reformatting occurs when you switch[/color]
                between Designer View[color=blue]
                >and HTML View of your page.
                >
                >I'm sorry that these bugs are causing difficulty. I did[/color]
                some investigation[color=blue]
                >and found that the development team did seriously[/color]
                consider these bugs while[color=blue]
                >writing Visual Studio .NET 1.1. The first thought was to[/color]
                add an option to[color=blue]
                >turn off the reformatting feature. Unfortunately, it[/color]
                turned out to be[color=blue]
                >deeply integrated in the code that makes the editor[/color]
                useful. So, it could[color=blue]
                >not be turned off. Nor could it easily be fixed. Any[/color]
                changes made to this[color=blue]
                >area of the code would definitely impact many aspects of[/color]
                the editor.[color=blue]
                >
                >If they could go back in time and rethink that decision,[/color]
                things might be[color=blue]
                >otherwise. However, at the time, the development team[/color]
                looked at all the[color=blue]
                >information they had available and decided that trying[/color]
                to fix this for the[color=blue]
                >1.1 release would cause more harm than good.
                >
                >Please try the following partial workarounds. You might[/color]
                find that they[color=blue]
                >reduce the frequency of these problems.
                >
                >1) Undo
                >Each time you return to HTML view, immediately run Undo.[/color]
                The formatting[color=blue]
                >changes mostly take place when you switch from design[/color]
                view to HTML view and[color=blue]
                >these changes are mostly in a single undo entry. Calling[/color]
                undo then reverses[color=blue]
                >many of the changes.
                >
                >2) Save
                >Saving the ASPX page just prior to switching to design[/color]
                view reduces the[color=blue]
                >amount of reformatting the next time you switch back to[/color]
                HTML view.[color=blue]
                >
                >---
                >I know this is not a solution, but I hope you find that[/color]
                it helps.[color=blue]
                >
                >Regards,
                >
                >HuangTM
                >Microsoft Online Partner Support
                >MCSE/MCSD
                >
                >Get Secure! -- www.microsoft.com/security
                >This posting is provided "as is" with no warranties and[/color]
                confers no rights.[color=blue]
                >
                >.
                >[/color]

                Comment

                • Seth

                  #9
                  Re: Html auto formating

                  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.[color=blue]
                  >-----Original Message-----
                  >Hello,
                  >
                  >I did some more research and found that HTML[/color]
                  reformatting is a group of[color=blue]
                  >known bugs. The reformatting occurs when you switch[/color]
                  between Designer View[color=blue]
                  >and HTML View of your page.
                  >
                  >I'm sorry that these bugs are causing difficulty. I did[/color]
                  some investigation[color=blue]
                  >and found that the development team did seriously[/color]
                  consider these bugs while[color=blue]
                  >writing Visual Studio .NET 1.1. The first thought was to[/color]
                  add an option to[color=blue]
                  >turn off the reformatting feature. Unfortunately, it[/color]
                  turned out to be[color=blue]
                  >deeply integrated in the code that makes the editor[/color]
                  useful. So, it could[color=blue]
                  >not be turned off. Nor could it easily be fixed. Any[/color]
                  changes made to this[color=blue]
                  >area of the code would definitely impact many aspects of[/color]
                  the editor.[color=blue]
                  >
                  >If they could go back in time and rethink that decision,[/color]
                  things might be[color=blue]
                  >otherwise. However, at the time, the development team[/color]
                  looked at all the[color=blue]
                  >information they had available and decided that trying[/color]
                  to fix this for the[color=blue]
                  >1.1 release would cause more harm than good.
                  >
                  >Please try the following partial workarounds. You might[/color]
                  find that they[color=blue]
                  >reduce the frequency of these problems.
                  >
                  >1) Undo
                  >Each time you return to HTML view, immediately run Undo.[/color]
                  The formatting[color=blue]
                  >changes mostly take place when you switch from design[/color]
                  view to HTML view and[color=blue]
                  >these changes are mostly in a single undo entry. Calling[/color]
                  undo then reverses[color=blue]
                  >many of the changes.
                  >
                  >2) Save
                  >Saving the ASPX page just prior to switching to design[/color]
                  view reduces the[color=blue]
                  >amount of reformatting the next time you switch back to[/color]
                  HTML view.[color=blue]
                  >
                  >---
                  >I know this is not a solution, but I hope you find that[/color]
                  it helps.[color=blue]
                  >
                  >Regards,
                  >
                  >HuangTM
                  >Microsoft Online Partner Support
                  >MCSE/MCSD
                  >
                  >Get Secure! -- www.microsoft.com/security
                  >This posting is provided "as is" with no warranties and[/color]
                  confers no rights.[color=blue]
                  >
                  >.
                  >[/color]

                  Comment

                  Working...