How to collapse If, Else, For, Foreach, etc clauses?
Visual studio IDE gives an option to outline the if, for, foreach, while, switch case etc.
Just go to Visual Studio -> Tools -> Options -> Text Editor -> C\C++- > View
and set Outline Statement Blocks
to true.
In Visual Studio 2012+, the path is Visual Studio -> Tools -> Options -> Text Editor -> C\C++- > Formatting
.
Try this plugin (C# Outline Extension):
- VS2010
- VS2012
- VS2013
- VS2015
- VS2017
- VS2019