News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

AStyle plugin - how to format all source files in the project?

Started by accosmin, August 15, 2007, 09:34:54 AM

Previous topic - Next topic

accosmin

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

dje

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

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

Ceniza

Please file a feature request at Berlios and feel free to assign it to me, so I won't forget :)