Pretty sure the answer is no :/ although I just learnt that there is a #region commands for VS
However you might want to try typing a {... I don't know if this still works, but a while back it would trick the ide into making a collapsible section. It might have been fixed since but I expect it probably still works.
If it does work, you could just put a ` before it to comment it out for the compiler yet Code::Blocks will still parse it.
Hope this works
I can't test it right now so I can't say for sure whether it'll do anything but as long as TGC hasn't fixed it it will probably still work.
Ex:
`{
Print("my collapsible code here")
`}