Shortcut to collapse all documentation headers/comments in Visual Studio

扶醉桌前 提交于 2019-12-03 16:13:31

问题


Is there a way to collapse all documentation headers (/// comments) in the current file in visual studio (2008+)?


回答1:


See my macro for collapsing XML comments which does exactly what you need.




回答2:


You can try Ctrl + M, Ctrl + O, but that will collapse function bodies as well.




回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!