Format one line statements - blocks

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin
tianni
CodeLite Curious
Posts: 2
Joined: Mon Apr 07, 2014 2:33 am
Genuine User: Yes
IDE Question: c++
Contact:

Format one line statements - blocks

Post 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.
User avatar
Jarod42
CodeLite Expert
Posts: 237
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Format one line statements - blocks

Post 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).
tianni
CodeLite Curious
Posts: 2
Joined: Mon Apr 07, 2014 2:33 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Format one line statements - blocks

Post by tianni »

Ok. Thanks for your fast response.
Post Reply