Is there a way to collapse all documentation headers (/// comments) in the current file in visual studio (2008+)?
See my macro for collapsing XML comments which does exactly what you need.
Anton Gogolev
You can try Ctrl + M, Ctrl + O, but that will collapse function bodies as well.
Ruben Bartelink
What Anton said.
If what you want is not on Edit|Outlining, you'd need to write a macro or a DxCore plugin to walk it and Ctrl + M, M each relevant block.
来源:https://stackoverflow.com/questions/2116685/shortcut-to-collapse-all-documentation-headers-comments-in-visual-studio