Author Topic: C++ code folding customization  (Read 1923 times)

DTF

  • Guest
C++ code folding customization
« on: August 13, 2012, 01:03:22 pm »
Hello everyone.
Please excuse me for my poor english...


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

Code: [Select]
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:
Code: [Select]
void foo() [...]
?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: C++ code folding customization
« Reply #1 on: August 13, 2012, 05:15:45 pm »
Is it possible to make the folded code look like this:
Code: [Select]
void foo() [...]
?
Yes, if you write code like this:
Code: [Select]
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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ