Author Topic: .astylerc and astyle-on-close  (Read 7079 times)

Offline seasoned_geek

  • Multiple posting newcomer
  • *
  • Posts: 10
.astylerc and astyle-on-close
« on: November 19, 2021, 10:33:31 pm »
All,

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?

https://forums.codeblocks.org/index.php/topic,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.

Thanks,


Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: .astylerc and astyle-on-close
« Reply #1 on: November 23, 2021, 02:58:37 am »
I suggest you download the C::B source code and have a look for yourself.