1

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.

4

1 回答 1

0

查看这篇博文,该宏提供了两种功能——一种是折叠所有 XML 评论,另一种是切换所有 XML 评论

博客文章提到宏应该适用于 Visual Studio 2005 及更高版本,所以我想它也适用于 VS 2012。我正在使用 VS 2010,即使在我将宏与键盘快捷键挂钩后,它对我也很有效。我很高兴我在另一个堆栈溢出问题的答案之一中找到了博客文章链接 =)

于 2013-10-09T06:28:26.493 回答