Page 1 of 1

My options for source formatting don't apply

Posted: Sat May 10, 2014 1:16 pm
by PartyBoat
Hello everyone!

So I went to Plugins -> Source Code Formatter -> Options and I set up how I like my code to be formatted by default, but CodeLite is still reformatting my code to the default as I type. I can press ctrl + I and it formats it correctly, but it's ridiculous that I should need to press a keybind after every time CodeLite reformats my code. Is there any way to actually set the default code formatting?

Thanks for your time!

Re: My options for source formatting don't apply

Posted: Sun May 11, 2014 10:03 am
by eranif
PartyBoat wrote:Is there any way to actually set the default code formatting?
No. By default, codelite uses its own formatting mechanism as you type. And as you discovered, Ctrl-I will run AStyle to re-format your source code.
There is a feature request to enable AStyle for "format as you type"

https://github.com/eranif/codelite/issues/419

Eran