Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Collapse Comments

Collapse Comments

Matt Lacey

mrlacey.com
|
5,651 installs
| (12) | Free
Improve the way you work with comments in code by easily (& automatically) expanding and collapsing comments.

Simple VSIX extension that adds a command to collapse comments in the open code file.

Ctrl+M, Ctrl+C collapses all comments (and using/Import statements.)
Ctrl+M, Ctrl+D expands all comments (and collapses everything else.)
Ctrl+M, Ctrl+F toggle comments Ctrl+M, Ctrl+K collapses to definitions and show comments Ctrl+M, Ctrl+E collapses to definitions and collapse comments

Should work with all file types that have the concept of comments.

Configurable (via Tools > Options):

  • collapse (or expand) using/import directives
  • auto-collapse when opening a file


A version of this extension that works with Visual Studio 2017 & 2019 is also available.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft