开发者

Automatic deletion of spaces on asp.net tags

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜