简体   繁体   English

VS中的HTML换行格式不起作用?

[英]HTML line break formatting in VS is not working?

I've adjusted my VS 2010 HTML formatting settings to do line breaks "Before opening, within, and after closing" for many tags such as the <a> and <li> tags. 我已经调整了我的VS 2010 HTML格式设置,以便为许多标签(例如<a><li>标签)执行换行符“打开前,关闭内和关闭之后”。

But this only renders as the following when formatting the document: 但是这只在格式化文档时呈现如下:

<ul>
    <li>
        <a href="#">
            Item 0</a></li>
    <li>
        <a href="#">
            Item 1</a></li>
    <li>
        ...

How can I make VS 2010 (or 2008) format the HMTL this way instead? 我怎样才能使VS 2010(或2008)以这种方式格式化HMTL?

<ul>
    <li>
        <a href="#">
            Item 0
        </a>
    </li>
    <li>
        <a href="#">
            Item 1
        </a>
    </li>
    <li>
        ...

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

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