Is everyone plowing through the Project like a hot knife through butter?
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...
Didn't have big problems yet (probably config file will need more digging), going slow because too much information from course and usualy takes time to find right code even I'm already did it in past... need a new fast modern memory in my head... clean, without mess :).
ReplyDeleteStill going forward, do not see the end.......