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->Options->Text Editor->HTML->Tab and change the indenting option to Smart.
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. And the block HTML indent will trigger our MVC4 editor problem.
For VS2010sp1 + MVC4 Beta razor problem workaround, please visit http://blogs.msdn.com/b/webdevtools/archive/2012/02/27/vs2010-sp1-mvc4-beta-workaround-for-cshtml-vbhtml-editor-s-long-pause.aspx
Thanks
Xinyang Qiu
Web Platform and Tools Team
Update on April 6, 2012
April 2012 Update for Visual Studio 11 Beta fixed this issue. Please install the update from Visual Studio 11 Beta “Tools”->”Extension Manager”, “Updates”->-“Product Updates”.
0 comments