In Visual Studio 2008: Is there a way for me to customly collapse bits of code similar to like how I can automatically collapse chunks of comments?
Your piece of code needs to be a block surrounded by, as desired:
#region
and #endregion
in C##pragma region
and #pragma endregion
in C/C++If you can't collapse statement blocks, you need to enable this feature :
Tools -> Options -> Text Editor -> C/C++ -> Formatting -> check everything in "outlining"
(In Visual Studio 2013 it's Tools -> Options -> Text Editor -> C/C++ -> View)
Then, reopen the source file to reload outlining.