There is a cool and beneficial tool in Windows 7 called PSR. Just type PSR on the Run command. Then Press the Start Record Button. It records all user interactions with applications running on your PC. When you are done, Press Stop Record and save the generated file ( a .mht file) that can be viewed in a Browser. You should give this a try.
Sub FormatAll() For Each proj As Project In DTE.Solution.Projects FormatFileRecur(proj.ProjectItems()) Next End Sub Sub FormatFileRecur(ByVal projectItems As EnvDTE.ProjectItems) For Each pi As EnvDTE.ProjectItem In projectItems If pi.Collection Is projectItems Then Dim pi2 As EnvDTE.ProjectItems = pi.ProjectItems Try If pi.Name.EndsWith(".cs") Then If Not (pi.Name.EndsWith("Designer.cs")) Then If Not pi.IsOpen Then pi.Open(Constants.vsViewKindCode) pi.Document.Activate() DTE.ExecuteCommand("Edit.FormatDocum...

Comments
Post a Comment