Page 1 of 1

Format one line statements - blocks

Posted: Mon Apr 07, 2014 2:40 am
by tianni
Hi,

I am a new user of codelite and I am trying to customize formatting options.

How can I remove whitespace in one-line statements - blocks. For example :

void______foo()______{______cout << "hi"___} ----> void_foo(){cout << "hi";} ( _ is whitespace)

Thanks.

Re: Format one line statements - blocks

Posted: Mon Apr 07, 2014 11:16 am
by Jarod42
See AStyle documentation for code formatting (as Codelite use AStyle for its CodeFormatter plugin).

I don't think that AStyle does that...
You may look at other source code formatter as clangformat or uncrustify (both are not integrated into Codelite).

Re: Format one line statements - blocks

Posted: Mon Apr 07, 2014 4:25 pm
by tianni
Ok. Thanks for your fast response.