Friday, July 28, 2006

Visual Studio 2005 and ExpansionsXML.xml

In Visual Studio 2005, I started to notice excessive disk activity when I saved one or more files. So, I installed File Monitor from Sysinternals and I noticed that when I saved my files, that the monitor reported that a lot of operations were performed on a file called ExpansionsXML.xml in the C:\Documents and Settings\\Local Settings\Application Data\Microsoft\VisualStudio\8.0\1033 directory. This file is used to store code snippets, and I wasn't able to find a way to turn off the code snippets, so I I googled around for a bit, and I found a news posting that addressed the problem. So the temporary fix is to make the ExpansionsXML.xml file read-only. I did that and no more disk thrashing.

Saturday, July 01, 2006


There's a cool tool for Visual Studio 2005 that allows you to copy ans paste code as
HTML. Very usefull when copying/pasting from Visual Studio into a blog entry.

You can get it here

    7    public interface ISpecification

    8     {

    9        bool isSatisfiedBy(object candidate);

   10     }


   12     public class LogicalAnd : ISpecification

   13     {

   14         public bool isSatisfiedBy(object candidate)

   15         {

   16             throw new Exception("The method or operation is not implemented.");

   17         }

   18     }

This page is powered by Blogger. Isn't yours?