Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Web Essentials Zen编码和Razor语法_C#_Asp.net_Asp.net Mvc_Visual Studio_Web Essentials - Fatal编程技术网

C# Web Essentials Zen编码和Razor语法

C# Web Essentials Zen编码和Razor语法,c#,asp.net,asp.net-mvc,visual-studio,web-essentials,C#,Asp.net,Asp.net Mvc,Visual Studio,Web Essentials,在Razor视图中使用Web Essentials时,我从HTML zen Codeding选项卡complete中获得了一些意想不到的行为 从这里开始 <div class="panel-body"> @using (Html.BeginForm("Update", "Workflow", FormMethod.Post)) { div.form-group//cursor here } </div> @使用(Html.Beg

在Razor视图中使用Web Essentials时,我从HTML zen Codeding选项卡complete中获得了一些意想不到的行为

从这里开始

<div class="panel-body">
    @using (Html.BeginForm("Update", "Workflow", FormMethod.Post))
    {
        div.form-group//cursor here
    }
</div>

@使用(Html.BeginForm(“更新”、“工作流”、FormMethod.Post))
{
div.form-group//cursor此处
}
当我点击tab时,我希望它扩展到

<div class="panel-body">
    @using (Html.BeginForm("Update", "Workflow", FormMethod.Post))
    {
        <div class="form-group"></div>
    }
</div>

@使用(Html.BeginForm(“更新”、“工作流”、FormMethod.Post))
{
}
但它却扩展到了

<div class="panel-body">
    @using (Html.BeginForm("Update", "Workflow", FormMethod.Post))
            {
        < div class="form-group"></div>
    }
</div>

@使用(Html.BeginForm(“更新”、“工作流”、FormMethod.Post))
{
}
很接近但是。。。奇怪


我能做些什么来有效地在Razor视图中使用zen编码吗

也许你的VisualStudio干扰了zen,你试过禁用粘贴格式吗?(工具->选项->文本编辑器->HTML->高级)@lkn2993我刚试过,不幸的是没有骰子。