在 Visual Studio 中格式化整个文档。 P 和 H1 标签被分割为不止一行
当我在 Visual Studio 中按格式化整个文档时,一些标签(例如“h1”和“p”)被分割为多于一行
<h1>
<%# something %></h1>
我想要发生的是所有内容都保留在一行。
<h1><%# something %></h1>
我检查了“工具”>“格式设置”选项>文本编辑器> HTML>格式>标签特定选项 h1 和 p 其设置为“之前和之后”,默认设置也是设置此选项。
任何人都可以告诉我如何防止额外的换行符?
When I press format whole document in Visual studio, some tages like "h1" and "p" got split over more then one row
<h1>
<%# something %></h1>
What I want to happen is that everything stays at one row.
<h1><%# something %></h1>
I checked out the formatting settings under Tools > Options > Text Editor > HTML > Format > Tag Specific Options for h1 and p its set to "before and after", also the default settings are set this option.
Anyone can tell me how to prevent this the extra line breaks?
在不查看 VS 的情况下,我会尝试在客户端 Html 标签下添加一个新标签。
添加新标签“%”并设置格式,无结束标签和换行符。
我认为这应该适合你的格式
Without looking into VS, I would try adding a new tag under Client Html Tags.
Add the new tag "%" and set the formatting, no closing tags and no line-breaks.
I think this should work for you in format