Visual studio (asp.net) question

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!
 
S

Scott M.

Tools...Options

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

Format sub-category

Then change the Auto-Format Options as needed.
 
A

Arjen

Thanks!,
Arjen




Scott M. said:
Tools...Options

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

Format sub-category

Then change the Auto-Format Options as needed.
 
E

Eliyahu Goldin

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
 
S

Scott M.

Actually these setting changes will help if you turn off the apply changes
when switching from design view to html view checkbox.
 
L

Lau Lei Cheong

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top