Solved

How can I stop Visual Studio.NET 2002 from automatically reformatting my code (ASP and HTML) in the designer view?

Posted on 2003-10-22
4
225 Views
Last Modified: 2010-04-07
Sometimes after taking great pains to indent my HTML and ASP.NET code properly, closing and re-opening the ASPX page causes the IDE to magically reformat  my tags and code the way it feels fit -- and sometimes the resultant tag and code placement is hard to read.  Is there an option setting to turn that feature off?

Thanks
0
Comment
Question by:Tomscarb
4 Comments
 
LVL 5

Accepted Solution

by:
boro_bob earned 125 total points
ID: 9607588
From the main menu select Tools>Options

In the dialog box that appears you get a folder menu on the left. Select Text Editor > HTML/XML > Format.
Uncheck the two tick boxes at the top that say When Saving Document and When Swicthing From Design To HTML/XML View.

That should do the trick!
0
 

Author Comment

by:Tomscarb
ID: 9608099
Thanks a million, boro_bob!  Much appreciated.
0
 

Expert Comment

by:kavitha_d
ID: 9917318
It is really a great tip.
0
 
LVL 1

Expert Comment

by:KaitainHeavyIndustries
ID: 13105107
Unfortuntaly that isn't truely the answer.  If you touch anything in design view, it will still mess up your code.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

708 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