Is there something similar to explicit code regions for folding in Qt Creator:
#pragma region Region_1
void Test() {}
void Test2() {}
void Test3() {}
#pragma endregion Region_1
I can see folding for logical code blocks, but do not know how to explicitly set such a block. My version of Qt Creator is 2.4.1
Now we can do this by:
Right before the block that you want to fold you place the following define:
#define FOLDINGSTART {
and directly after the block you place:
#define FOLDINGEND }
you can place your code in {} and write a comment for its name.
{ // RegionName
void Test() {}
void Test2() {}
void Test3() {}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With