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
227 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bootstrap align photos when printing 10 82
online form save filled out 10 53
you tube .com 2 201
How does Amazon build their pages? 3 73
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 make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

831 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