title: auto format all files in solution in visual studio 2010
body: <p>I'm trying to auto-format all files in my solution in vs2010. I've seen there is no built-in option to do it. I've tried to write macro to do it, but I've stucked.</p>
  
  <p>When I iterates any <code>ProjectItem</code> in my projects, I don't know how to open designable-files in source-code mode, or how to distinguish between sourceable files and icourceable files (such as <em>png</em>-s or such).</p>
  
  <p>Do you have any suggestions?</p>
  
  <p>thanks.</p>