- Published: Thursday, 11 January 2007 15:42
Today, a user of our VSdocman has asked me for interesting functionality in Visual Studio. He wants to collapse all XML comments in the file with one click. There is no such command in VS so I wrote a macro that does the job. The macro only works in VS 2005 and higher and only for C# and VB .NET code.
In fact, there are two macros, one for collapsing the comments and one for toggling the comment outlining expansion. The first one seems to be better for our purposes. But due to limitations of VS automation, it has one drawback. When you manually collapse this comment