Using Visual Studio can be quite frustrating: even having a big quad processor 8 gig SSD raid machine it will still complain not being able to complete an operation because there is not enough “storage” available. Ever seen this “Not enough storage is available to complete this operation.”-Message in large solutions with many projects?

Actually this “storage” means memory and you can use the following steps to provide more memory to visual studio:

  1. Windows XP users only:  add the /3GB switch to your boot.ini (make sure you backup your old boot.ini before)
  2. Windows Vista users only: from the Visual Studio command prompt run: BCEDIT /Set IncreaseUserVa 3072
  3. Apply large address awareness to visual studio by running: editbin /LARGEADDRESSAWARE devenv.exe in your <path-to-VS>/Common7/IDE (make sure you backup your old devenv.exe)
  4. Reboot

Now Visual Studio will use more than 2GB of RAM. It will never use MUCH more than 2GB of RAM, but it seems like Visual Studio will have problems when hitting the 2GB mark without this trick.