User forums > Using Code::Blocks

.astylerc and astyle-on-close



I have two questions that are kind of joined at the hip.

First:  Is there a way to make Code::Blocks use the project .astylerc file?

You see, we maintain one of those and it is checked into the source control system. People aren't required to actually use a single editor. They are required to use that .astylerc. Most other editors that I encounter tend to just shell-out under the hood and use the command line astyle which will look in a project's root directory for that file after looking in the local/working directory. When that fails it looks in the user's HOME directory.

We are using CMake and generating the project file if that bit of information helps.

Second: Is the only way to make Code::Blocks Astyle-On-Save the method discussed in this message thread?,19636.msg134085.html#msg134085

Yes, I did look for this answer. I gotta believe I'm just missing a checkbox somewhere. Even Emacs has the Astyle-On-Save option.


I suggest you download the C::B source code and have a look for yourself.


[0] Message Index

Go to full version