R – Visual Studio Performance when editing XAML/Silverlight files

silverlightvisual studiovisual-studio-2008xaml

When I work on Silverlight projects within Visual Studio 2008, I regularly notice that the XAML editor hangs for up to 10 seconds. This because Visual Studio consumes 100% CPU during that timeframe.
Any ideas how I could fix that? I assume this is some kind of background compiling for itellisense or something similiar. It happens during editing, multiple times an hour, without me doing any special actions.

System:

  • Server 2008 Std
  • Visual Studio 2008 SP1
  • latest updates…

I wonder if anyone else experienced this issue. Any help would be appreciated.

Best Answer

The problem is that the xaml editor takes so long to draw the preview. Do you need the visual preview? If you don't, you can turn it off, and that's what we do on the Silverlight Tour. Tools->Options->Text Editor->XAML->MIscellaneous->"Always open documents in full XAML view". This option gives you all of the benefits of auto-complete without the killer wait times ;)