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
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
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 connect a WordPress website to Google Analytics. 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 :…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

734 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