Visual studio (asp.net) question

  • Thread starter Thread starter Arjen
  • Start date Start date
A

Arjen

Hello,

Visual studio change my coding style all the time!

For example:
I place a control on one line in HTML view.
I close and open the same page again and... the control code is placed over
multiple lines.

I don't want that.
What can I do about this?

Thanks!
 
Tools...Options

Text Editor category...HTML/XML sub-category

Format sub-category

Then change the Auto-Format Options as needed.
 
This won't help. It's a known problem. The change in formatting happens when
you switch in Design view and change something there. Many designers avoid
using Design view because of that.

Eliyahu
 
Actually these setting changes will help if you turn off the apply changes
when switching from design view to html view checkbox.
 
Actually I've decided that as long as the changes won't render my work
unusable, I won't care that.
The formating feature(except removal of / at the end of tags that need not
be closed) is not that unacceptable indeed.
Changing to design view and back will let VS.NET IDE check to see if I have
missing server side declaration and wiring in my work and save me time for
checking that, so I can focus on checking other things.
 
Back
Top