简体   繁体   English

Visual Studio 2008 中的 HTML 格式

[英]HTML Formatting in Visual Studio 2008

Is it possible to turn off all HTML formatting in Visual Studio 2008?是否可以在 Visual Studio 2008 中关闭所有 HTML 格式? It just totally messes everything up.它只是完全搞砸了一切。 For example, I'll add a grid with columns, styles, etc. with them all indented and on separate lines.例如,我将添加一个带有列、样式等的网格,它们全部缩进并在单独的行上。 I'll switch to design view or split view and all the work I just did is on one line!我将切换到设计视图或拆分视图,我刚刚所做的所有工作都在一行上! It is so frustrating.这太令人沮丧了。

I've changed some things in the Options menu but is there any way to turn it off completely?我在“选项”菜单中更改了一些内容,但有什么方法可以将其完全关闭?

I don't use design view usually.我通常不使用设计视图。 I enter my tags and controls using source view but sometimes I will switch for a second to look at something.我使用源代码视图输入我的标签和控件,但有时我会切换一秒钟以查看某些内容。

There are some formatting options under Tools-->Options-->Text Editor-->HTML-->Format while there doesn't seem to be an option to turn it off, there may be something there to define how you want it to format.工具-->选项-->文本编辑器-->HTML-->格式下有一些格式选项,虽然似乎没有关闭它的选项,但可能有一些东西可以定义您想要的方式来格式化。

To reformat the document hit ( CTRL + K , CTRL + D ) or Edit-->Advanced-->Format Document .重新格式化文档命中( CTRL + KCTRL + D )或Edit-->Advanced-->Format Document

Don't use design view.不要使用设计视图。 A good asp.net developer doesn't need it.一个好的asp.net 开发人员不需要它。 It only brings with it more headaches than benefits.它只会带来更多的麻烦而不是好处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM