473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

code layout

et
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #1
5 1376
http://blogs.msdn.com/MikhailArkhipo...16/132886.aspx

"You do can switch formatting off in Tools | Options, but it will not solve
the underlying issue, it will only switch off pretty formatting."

Never tried turning it off myself, but sounds like it may still not help a
whole lot. Very aggravating.

Greg

"et" <ea*************@yahoo.com> wrote in message
news:OA*************@TK2MSFTNGP09.phx.gbl...
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #2
You can't.
Have to wait for version 2.0.

Some people *never* switch between views.

Use Dreamweaver for the HTML and maintain a backup at all times.
--
Joe Fallon

"et" <ea*************@yahoo.com> wrote in message
news:OA*************@TK2MSFTNGP09.phx.gbl...
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #3

Before changing to Design mode from HTML mode, make sure that you save the
file. Then this usually does not occur. If you can, try to add your solution
to source control. This way, whenever VS tries to edit your code, you will be
notified to check the file out, so simply say no. But generally, this does
not happen if you save your code in the html view before switching back to
design view I think. (Not sure though)

Ethem

"et" wrote:
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #4
I have delt with this before and what you need to do to resolve / solve this
problem is you need to set your tools > options and in there set your default
view to html and not design. VS reformats everything when ever you view a
page in design view. If you are not using the designer for creating your
page than this will solve your problem without having to go through all the
complications of saving and adding to vss.

"Ethem Azun" wrote:

Before changing to Design mode from HTML mode, make sure that you save the
file. Then this usually does not occur. If you can, try to add your solution
to source control. This way, whenever VS tries to edit your code, you will be
notified to check the file out, so simply say no. But generally, this does
not happen if you save your code in the html view before switching back to
design view I think. (Not sure though)

Ethem

"et" wrote:
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #5

No, unfortunately this wouldn't help because all you are doing is to set the
default mode to html. Whenever you go to the design mode for any reason, the
same thing will occur.

I agree that putting the file to VSS is an exteremly bad solution, but it's
not really a solution proposal, just a result of using VSS. In anycase, when
I save the file and turn to the design mode, if I don't change anything and
go back to the html, then VS does not mess with the html. Of course, if you
change something through the designer, expect the html to change.
Unfortunately there's nothing that can stop that.

Sorry,

Ethem Azun

"Abhishek Patel" wrote:
I have delt with this before and what you need to do to resolve / solve this
problem is you need to set your tools > options and in there set your default
view to html and not design. VS reformats everything when ever you view a
page in design view. If you are not using the designer for creating your
page than this will solve your problem without having to go through all the
complications of saving and adding to vss.

"Ethem Azun" wrote:

Before changing to Design mode from HTML mode, make sure that you save the
file. Then this usually does not occur. If you can, try to add your solution
to source control. This way, whenever VS tries to edit your code, you will be
notified to check the file out, so simply say no. But generally, this does
not happen if you save your code in the html view before switching back to
design view I think. (Not sure though)

Ethem

"et" wrote:
How do I get Visual Studio to quit modifying the layout of my code? In
Tools, Options, Text Editor, All Languages, Tabs, I have set to None.

In HTML/XML, I have tabs set to none; all automatic formating is unchecked

Yet when I set up, for instance, a table, and I want the code to be on
separate lines, like this:

<asp:table
runat="server"
grindlines="both">
</table>

etc., somewhere along the way the code ends up all on one line, like this
<asp:table runat="server" gridlines="both"></asp:table>

When there's a lot of parameters, this gets ridiculous, and I find I'm
re-arranging code more often than writing it!

Thanks.

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: post400 | last post by:
Hi, apparently there is a very famous book that every developer should read: Code complete by Steve McConnell ! Is there an electronic version freely downloadable ? After all, the book was...
8
by: G Patel | last post by:
Can people please comment on the layout/style of my problem? The major issue I had was the layout. I ended up having to put a relatively large switch statement, inside an if statement, which is...
2
by: Tony | last post by:
I want to know if the preview version of VS2005 has a toolwindow that show the code element layout of a source file. (Not the class view which show the entire model of the project, all I want is...
9
by: neoswf | last post by:
hey guys ive looked at http://news.google.com page code layout, and ive seen that the page layout is table based. the containers are tables, the hidden personalization panels are also in...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
9
by: Bala | last post by:
Hi there, I was wondering if someone could provide me with a C# code convention document. I've tried to find some using "Google", but to no avail. I did find plenty of Java Code conventions,...
11
by: Daniel Norden | last post by:
Hello. Can you give me some feedback on my code layout? I have everything organized in an object, "NRL", that's used as a namespace, and there are other subobjects/modules below that, for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.