Visual Studio 2010
region, endregion
#pragma region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor.
#pragma region name #pragma endregion comment
Parameters
Remarks
#pragma endregion marks the end of a #pragma region block.
A #region block must be terminated with #pragma endregion.
Example
// pragma_directives_region.cpp
#pragma region Region_1
void Test() {}
void Test2() {}
void Test3() {}
#pragma endregion Region_1
int main() {}
See Also
