Can I format all source files in one project at once?

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

Can I format all source files in one project at once?

Postby guang11cheng » Fri May 23, 2014 1:13 pm

I want to format all source files in one project at once, without opening each file and then running the plugin one by one.
Can I do it?
And even can I format all source files in the workspace at once?


best regards
guang11cheng
CodeLite Curious
 
Posts: 8
Joined: Thu May 15, 2014 9:29 am

Re: Can I format all source files in one project at once?

Postby Jarod42 » Fri May 23, 2014 5:16 pm

I personnally use the tools externally, something like (that you may bind as external tool):

Code: Select all
AStyle.exe --ascii --options=myastylerc --recursive "*.cpp"  ".h"
Jarod42
CodeLite Expert
 
Posts: 176
Joined: Wed Sep 30, 2009 5:54 pm
Location: France

Re: Can I format all source files in one project at once?

Postby eranif » Fri May 23, 2014 7:04 pm

guang11cheng wrote:Can I do it?

I am afraid not. Please submit a feature request

Thanks
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
 
Posts: 5755
Joined: Wed Feb 06, 2008 9:29 pm

Re: Can I format all source files in one project at once?

Postby guang11cheng » Mon May 26, 2014 6:19 am

thank you, eranif!

I submit a feature request on github.

thank you for your great job! codelite is a great C++ IDE.
guang11cheng
CodeLite Curious
 
Posts: 8
Joined: Thu May 15, 2014 9:29 am

Re: Can I format all source files in one project at once?

Postby guang11cheng » Mon May 26, 2014 7:21 am

Jarod42 wrote:I personnally use the tools externally, something like (that you may bind as external tool):

Code: Select all
AStyle.exe --ascii --options=myastylerc --recursive "*.cpp"  ".h"



Thank you, i have done it that way, but I do not think it's a good solution. Because code fomatting is a very high frequency used function, so it should very easy to use without advanced external tools.
guang11cheng
CodeLite Curious
 
Posts: 8
Joined: Thu May 15, 2014 9:29 am


Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 1 guest

cron