由网友(放肆旳青春﹌丢了灵魂)分享简介:pretty的简单的问题来解释:在Visual Studio 2010 SP1中,我看到奇怪的缩进问题,用大括号使用剃刀时,Pretty simple problem to explain: In Visual Studio 2010 SP1, I'm seeing weird indentation issues...
pretty的简单的问题来解释:在Visual Studio 2010 SP1中,我看到奇怪的缩进问题,用大括号使用剃刀时,
Pretty simple problem to explain: In Visual Studio 2010 SP1, I'm seeing weird indentation issues with braces when using Razor.
下面是它的外观:
<div>
<div>
<div>
<div>
@if (true)
{
<b>Hi</b>
}
</div>
</div>
</div>
</div>
这就是出来后,我做了CTRL + K,D进行格式化。任何人有这个问题?这是怎么回事?
That's what comes out after I do a CTRL + K, D to format it. Anyone else have this issue? What's the deal?
推荐答案
这是在编辑器中一个已知的bug。
This is a known bug in the editor.
要解决这个问题,选择插入空格
,而不是保持标签
的选项,文本编辑器,HTML。
To fix it, select Insert Spaces
rather than Keep Tabs
in Options, Text Editor, HTML.
相关推荐
最新文章