开发者

Automatic deletion of spaces on asp.net tags

开发者 https://www.devze.com 2023-01-21 02:52 出处:网络
Little question out of annoyment with Visual Studio 2010. Whenever I write lines like this: <%: Html.LabelFor(model => model.AccountName) %>

Little question out of annoyment with Visual Studio 2010. Whenever I write lines like this:

<%: Html.LabelFor(model => model.AccountName) %>

And save the file, some lines (some, not all of them, haven't figured out the logic behind this yet) will be converted to this:

<%: Html.LabelFor(model => model.AccountName)%>

Quite subtle difference, but I was wondering which magic happens here. 开发者_JAVA技巧Anyone got an idea? And perhaps an idea how to switch this magic off?

Thanks!


Based on Visual Studio 2008:

[Tools -> Options]

TextEditor -> XML -> Formatting -> Auto Reformat

- On paste from clipboard
- On completion of end tag
0

精彩评论

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