Skip to content

mrlacey/CollapseComments

Repository files navigation

Collapse Comments

Build status License: MIT Works with Visual Studio 2017 Works with Visual Studio 2019 Works with Visual Studio 2022

Download this extension from the VS Gallery for VS 2017 & 2019 or VS2022.


Simple Visual Studio extension that adds commands to collapse (and expand) comments in the open file.

Features

  • Ctrl+M, Ctrl+C collapses all comments (and using/Import statements)
  • Ctrl+M, Ctrl+D expands all comments and closes all other areas
  • Ctrl+M, Ctrl+F toggles all comments
  • Ctrl+M, Ctrl+K Collapse to definitions and show comments
  • Ctrl+M, Ctrl+E Collapse to definitions and collapse comments
  • Should work with all file types that have the concept of comments
  • Can also collapse (or expand) using/import directives
  • Can be configured to collapse comments when a document is opened
  • Also support collapsing multi-line C# strings

Commands shown in document context menu

Please note. If the shortcuts don't seem to be working, check that they are not also being used by something else.

See the change log for changes and roadmap.


Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Essentials (2022) extension for Visual Studio which enables some features used by this project.

About

Visual Studio extension to improve working with comments in code

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages