Visual Studio: Collapse Methods, but not Comments (Summary etc.)

Ctrl M, Ctrl O

Collapses to definitions.

From this point a macro might not be too hard to write.

Something like find /// <summary> ... and toggle outlining. Then lather, rinse, repeat.


Although this question is old and answered, I was looking for the same thing as question but I think this is the simpler way than writing macro:

Tools > Options > Text Editor > C# > Advanced > Outlining > Uncheck "Show outlining for comments and preprocessor regions" checkbox

If you do that and than use CTRL+M and CTRL+O shortcut, methods will collapse but summaries and regions will remain uncollapsed.