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.

VS12ClientWebPartFreeze

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…

VS12ClientWebPartOpenWith

Choose Source Code (Text) Editor.

VS12OpenWithEditorList

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.

Comments

# re: Workaround for freezes in Client Web Part Editor in Visual Studio 2012

Sunday, April 14, 2013 2:57 PM by Mattias

THANK YOU!!!!!!!!!!!!!

# re: Workaround for freezes in Client Web Part Editor in Visual Studio 2012

Friday, April 19, 2013 2:10 AM by Warlock

Thanks a lot! I have the same problem. Is there any fix from Microsoft?

# re: Workaround for freezes in Client Web Part Editor in Visual Studio 2012

Friday, April 19, 2013 8:34 AM by CoreyRoth

@Warlock try the RTM tools or reference a file locally.

# re: Workaround for freezes in Client Web Part Editor in Visual Studio 2012

Saturday, March 28, 2015 1:18 AM by Vic Janus

Thank you!

Leave a Comment

(required)
(required)
(optional)
(required)