Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Jimmio92 on July 31, 2009, 03:12:16 pm

Title: Code Folding
Post by: Jimmio92 on July 31, 2009, 03:12:16 pm
Hello all,
I know Code::Blocks has code folding (wxScintilla I believe), but I was wondering if I can customize it so the start bracket doesn't show.

For example, my code resembles:
if(stuff)
{
    stuffs;
}
and I'd really love to not see an opening bracket going to seemingly no where.

Thanks in Advance,
Jimmi
Title: Re: Code Folding
Post by: ollydbg on July 31, 2009, 03:38:52 pm
No, I think you can't do that. Maybe, change the code style approaches your desire.
Code
if(stuff){
    stuffs;
}

At this time, you can save one line more.
Title: Re: Code Folding
Post by: Jimmio92 on July 31, 2009, 04:34:55 pm
Sorry, I'm not changing my coding style just to save a line. I'll just have to learn to deal with it I guess.

-Jimmi
Title: Re: Code Folding
Post by: MortenMacFly on July 31, 2009, 04:38:55 pm
I'll just have to learn to deal with it I guess.
...just like several million other devs, too I guess. ;-)
Title: Re: Code Folding
Post by: ollydbg on July 31, 2009, 04:39:44 pm
Sorry, I'm not changing my coding style just to save a line. I'll just have to learn to deal with it I guess.

-Jimmi

I have just tested in Notepad++ which also use Scintilla control. But it still let the "open brace { "  seen.