Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
235 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 500 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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 …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

926 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