What\'s the C++ equivalent of #region for C++ so I can put in custom code collapsible bits and make my code a little easier to read?
In addition to #pragma region…#pragma endregion for Visual Studio, many IDEs support the following syntax for regions in any {}-delimited, //-commented language:
//{ Region header text.
…
//}
Notable examples include Code::Blocks and FlashDevelop, and any other editor that uses the Scintilla editing component, such as Notepad++, Geany, Komodo Edit, and many more.