{"id":2544,"date":"2012-03-06T18:24:00","date_gmt":"2012-03-06T18:24:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2012\/03\/06\/visual-studio-11-beta-razor-editor-issue-workaround\/"},"modified":"2012-03-06T18:24:00","modified_gmt":"2012-03-06T18:24:00","slug":"visual-studio-11-beta-razor-editor-issue-workaround","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/visual-studio-11-beta-razor-editor-issue-workaround\/","title":{"rendered":"Visual Studio 11 Beta Razor editor issue workaround"},"content":{"rendered":"<p>We found Visual Studio 11 Beta hits a crash bug when editing a Razor page (cshtml\/vbhtml) in a MVC4 project or a Razor2 Website if the indenting option for the HTML editor is set to <b>Block<\/b> instead of <b>Smart<\/b>. The workaround is to go to Tools-&gt;Options-&gt;Text Editor-&gt;HTML-&gt;Tab and change the indenting option to <b>Smart<\/b>.<\/p>\n<p>HTML smart indenting is a new feature in Visual Studio 11 and is the default option. However, if you have previous versions of Visual Studio installed on the same machine, the old indenting option might get accidently migrated to your Visual Studio 11 Beta settings.&nbsp; And the block HTML indent will trigger our MVC4 editor problem.<\/p>\n<p>For VS2010sp1 + MVC4 Beta razor problem workaround, please visit <a href=\"http:\/\/blogs.msdn.com\/b\/webdevtools\/archive\/2012\/02\/27\/vs2010-sp1-mvc4-beta-workaround-for-cshtml-vbhtml-editor-s-long-pause.aspx\">http:\/\/blogs.msdn.com\/b\/webdevtools\/archive\/2012\/02\/27\/vs2010-sp1-mvc4-beta-workaround-for-cshtml-vbhtml-editor-s-long-pause.aspx<\/a><\/p>\n<p>Thanks<\/p>\n<p>Xinyang Qiu<\/p>\n<p>Web Platform and Tools Team<\/p>\n<p>&nbsp;<\/p>\n<p>Update on April 6, 2012<\/p>\n<p><a title=\"April 2012 Update for Visual Studio 11 Beta\" href=\"http:\/\/support.microsoft.com\/kb\/2677574\">April 2012 Update for Visual Studio 11 Beta<\/a> fixed this issue.&nbsp; Please install the update from Visual Studio 11 Beta &#8220;Tools&#8221;-&gt;&#8221;Extension Manager&#8221;, &#8220;Updates&#8221;-&gt;-&#8220;Product Updates&#8221;.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We found Visual Studio 11 Beta hits a crash bug when editing a Razor page (cshtml\/vbhtml) in a MVC4 project or a Razor2 Website if the indenting option for the HTML editor is set to Block instead of Smart. The workaround is to go to Tools-&gt;Options-&gt;Text Editor-&gt;HTML-&gt;Tab and change the indenting option to Smart. HTML [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7384,7398],"class_list":["post-2544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-razor","tag-visual-studio-11-beta"],"acf":[],"blog_post_summary":"<p>We found Visual Studio 11 Beta hits a crash bug when editing a Razor page (cshtml\/vbhtml) in a MVC4 project or a Razor2 Website if the indenting option for the HTML editor is set to Block instead of Smart. The workaround is to go to Tools-&gt;Options-&gt;Text Editor-&gt;HTML-&gt;Tab and change the indenting option to Smart. HTML [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=2544"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=2544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=2544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=2544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}