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...
I posted a comment last night, but for some reasons, it disappeared.
ReplyDeleteI don't remember you showing us how to do it but I know how.
Just right click on the project, add a new item, add the class diagram, and drag and drop the project from the solution explorer to the diagram.
Thank you. This is part of testing this blog site to see if it really would work for the future and if it is better or worse. thanks for participating Agatha.
ReplyDelete