Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to collapse all documentation headers/comments in Visual Studio

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

like image 828
Veli Gebrev Avatar asked Jan 22 '10 10:01

Veli Gebrev


People also ask

How do you collapse comments in Visual Studio?

It's for the times when I just want the comments to get out the way that I created the Collapse Comments extension for Visual Studio 2019. It adds a simple command to collapse all the comments in the open document that you can invoke by pressing Ctrl+M, Ctrl+C.

How do I collapse all in Visual Studio?

Not available in Visual Basic. (Ctrl+M, Ctrl+O) - Collapses the members of all types.

What is the shortcut to collapse all functions in Visual Studio?

CTRL + M + O will collapse all.


1 Answers

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

like image 114
Peter Macej Avatar answered Sep 23 '22 12:09

Peter Macej