in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Workaround for freezes in Client Web Part Editor in Visual Studio 2012

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

 

Mattias said:

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

April 14, 2013 2:57 PM
 

Warlock said:

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

April 19, 2013 2:10 AM
 

CoreyRoth said:

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

April 19, 2013 8:34 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an Applications Architect at Infusion specializing in ECM and Search.
2012 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems