Visual Studio & HTML Formatting

Posted on 2005-05-05
Last Modified: 2010-04-16
Hi All,

I'm using Visual Studio 2003 for the HTML development. If I add components via the designer to my aspx page the HTML code gets messed up and the formatting is a nightmare.

Is there a way to prevent VStudio from reformatting the HTML?

And NO I do not want to use a diffent tool, has to be VStudio 2003

Question by:Pete2003
    LVL 13

    Expert Comment

    No. You can use VS 2003 though and use an external editor for html files, if that would satisfy you :)
    LVL 4

    Expert Comment

    Go to Tools -> Options -> Text Editor -> HTML/XML -> Format. You can uncheck any check box you don't want.

    LVL 23

    Accepted Solution

    Nothing much you can do. MS has fixed this in VS.NET 2005 (and has made this XHTML compliant too). All you can do is after adding the component in design view, to switch to HTML view and do a control+z. Sometimes that gets the format back.

    Or alternatively, avoid the design mode, when you can.
    LVL 2

    Assisted Solution

    I had posted something on this question previously.

    See ->

    There is a workaround, but it is not extremely easy to implement.  You are probably better off getting VS2005

    Author Comment

    I have decided to wait for VS 2005 as we can not afford to make any major changes in the development cycles now


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now