Format one line statements - blocks

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin

Format one line statements - blocks

Postby tianni » Mon Apr 07, 2014 2:40 am

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.
tianni
CodeLite Curious
 
Posts: 2
Joined: Mon Apr 07, 2014 2:33 am

Re: Format one line statements - blocks

Postby Jarod42 » Mon Apr 07, 2014 11:16 am

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).
Jarod42
CodeLite Expert
 
Posts: 176
Joined: Wed Sep 30, 2009 5:54 pm
Location: France

Re: Format one line statements - blocks

Postby tianni » Mon Apr 07, 2014 4:25 pm

Ok. Thanks for your fast response.
tianni
CodeLite Curious
 
Posts: 2
Joined: Mon Apr 07, 2014 2:33 am


Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 1 guest

cron