Workaround for freezes in Client Web Part Editor in Visual Studio 2012
Posted
Thursday, January 10, 2013 9:55 AM
by
CoreyRoth
If you have tried to do any work with SharePoint 2013 Client Web Parts with the Office Developer Tools Preview 2 in Visual Studio 2012, you know it’s an exercise in frustration. It literally locks up every three or four lines of code you try to type. When it does this, it will freeze for ten seconds or more. This occurs when you are editing the page associated with the web part. It’s a total productivity killer.
It finally bugged me enough that I started looking for a solution. I was pretty close to switching to notepad. Luckily, I found a quick work-around by launching a different text editor. To launch another editor, right click on your web part page in the Solution Explorer and choose Open With…
Choose Source Code (Text) Editor.
This editor is similar to the Web Form Editor but it won’t lock up. You will lose IntelliSense and AutoComplete. However, I’d gladly close my own div tag to not have the editor lock up every ten seconds. The HTML is still color coded at least, but the JavaScript is not. Your JavaScript should be in a separate file anyways though. :) If you have been experiencing this issue, I hope this helps.