News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

C++ code folding customization

Started by DTF, August 13, 2012, 01:03:22 PM

Previous topic - Next topic

DTF

Hello everyone.
Please excuse me for my poor english...


I have a little trouble with C::B folding:
My function looks like this:


void foo()
{
  //some code here
}


And when i collapse it i got the following:
void foo()
{
----------------------------------------------------------


Is it possible to make the folded code look like this:

void foo() [...]

?

MortenMacFly

Quote from: DTF on August 13, 2012, 01:03:22 PM
Is it possible to make the folded code look like this:

void foo() [...]

?
Yes, if you write code like this:

void foo() {
   //some code here
}


I guess any further questions concerning that you should ask this in the scintilla forum. Collapsing is provided by the 3rd party scintilla lib that we just use.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]