#region Constructors and DestructorsYou can do this pretty easy using #ifndefs like:
//Code Here..
#endregion
#ifndef REGION_LIVE_CYCLE
// Constructurs, Destructors...
#endif // REGION_LIVE_CYCLE
Well, you could do it like Morten suggested, but there is a better way of doing it:#region Constructors and DestructorsYou can do this pretty easy using #ifndefs like:
//Code Here..
#endregionCodeAs long as you don't define "REGION_LIVE_CYCLE" (why would you?!) the code compiles fine but yu can collapse those regions easily.#ifndef REGION_LIVE_CYCLE
// Constructurs, Destructors...
#endif // REGION_LIVE_CYCLE
For this purpose make sure you have enabled Settings->Editor->"Folding"->"Fold pre-processor commands".
With regards, Morten.
Well, you could do it like Morten suggested, but there is a better way of doing it:
Scintilla (CodeBlocks editing component) offers users an easy way for inserting fold points in the code using the following symbols:
//{ -- as a block starter
//} -- as a block ender
HTH
Eran
//{ -- as a block starterWow! That's fantastic (I honestly didn't know about that :oops:). Thanks Eranif!!! :D
//} -- as a block ender