5

i was wondering if there is an plugin, addon or any other easy way to get rid of the bloated xml comments for c#?

Company wants the documentation, but in my daily work the comments are simply polluting the code. It would be nice to have an easy way to simply collapse all xml documentation before the methods to one line or even better to nothing :-)

anyone any ideas?

TIA

3 Answers3

3

Ctrl-M-L will toggle between collapsing all items that can be and expanding them.

Unfortunately there isn't by default a command or a way to just do the Summary comments. There might be a plugin for it.

David Basarab
  • 70,191
  • 42
  • 128
  • 155
  • I knew this shortcut already, but i only want to collapse the xml documentation. –  Aug 19 '09 at 10:34
3

The blog post link that @Jesper gave works very well for me. And I am using Visual Studio 2010. So I think you can give it a try =).

The macro in that link provides two functionalities - one is collapse all XML comments, the other one is toggle all XML comments. Assigning them to keyboard shorcuts work great for me too.

Edit: And the blog post did mention the macro should work for VS 2005 and above. Just to mention that in case some of you miss it.

wiz_lee
  • 448
  • 7
  • 13
1

This blog post has a macro that works for Visual Studio 2005. I'm not a Visual Studio user, but perhaps this macro works on VS2008 as well, or could quickly be improved to work on VS2008?

Jesper M
  • 5,226
  • 2
  • 18
  • 12
  • i've found this blog post too. But i was searching for an easy way. I'm not a vb developer so the port to vs2008 would take some time for me i think... maybe someday –  Aug 27 '09 at 07:04