开发者

HTML line break formatting in VS is not working?

开发者 https://www.devze.com 2023-01-11 22:40 出处:网络
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.

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.

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?

<ul>
    <li>
       开发者_运维技巧 <a href="#">
            Item 0
        </a>
    </li>
    <li>
        <a href="#">
            Item 1
        </a>
    </li>
    <li>
        ...


Does this answer help? Configuring the formatting of <% %> blocks in Visual Studio editor

0

精彩评论

暂无评论...
验证码 换一张
取 消