Question

I have recently been given an existing project to work with that is very comment heavy, especially in terms of XML comments. In many cases the methods are short and simple and the XML comments take up more than half of the lines in the file. As much as I'd like to blow them all away with a quick find/replace, I'm not in a position to do so.

Is there a command, extension, macro, anything that will collapse all XML comment blocks in a couple of clicks/keystrokes? My Googling has only yielded solutions for older versions of VS.

No correct solution

OTHER TIPS

Check out this blog post, the macro provides two functionalities - one is collapse all XML comments, the other one is toggle all XML comments.

The blog post mentioned that the macro should work for Visual Studio 2005 and above so I suppose it will work in VS 2012 too. I am using VS 2010 and it is working great for me even after I hook the macro up with keyboard shortcuts. I am glad that I found the blog post link in one of the answer in another stack overflow question =)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top