Author Topic: AStyle plugin - how to format all source files in the project?  (Read 4582 times)

accosmin

  • Guest
Hello,

I am using Code::Blocks for a while and I enjoy building my toy applications for Linux and Windows.

Recently, I changed some editor's options and now I want to format all my source files accordingly using the AStyle plugin.
The problem is I cannot find a button or some command to do this, it seems only the current file can be formatted.

Is there any quick solution to format all my source files in the project?
Besides open every single file and using the Plugins menu entry ... :(

Thanks

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: AStyle plugin - how to format all source files in the project?
« Reply #1 on: August 15, 2007, 09:49:39 am »
Hi !

It could be a nice improvement. :)
Maybe you could try to use astyle from the command line with a *.cpp *.h to list your project files ?

Dje

accosmin

  • Guest
Re: AStyle plugin - how to format all source files in the project?
« Reply #2 on: August 15, 2007, 10:14:00 am »
Thanks for the link.

I tried the astyle command line; it works with *.h and *.cpp, but I cannot use the settings from Code::Blocks.
It seems that astyle needs some astylerc file with all the formatting settings and CB produces no such file.

Cosmin

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: AStyle plugin - how to format all source files in the project?
« Reply #3 on: August 15, 2007, 06:02:22 pm »
Please file a feature request at Berlios and feel free to assign it to me, so I won't forget :)