My options for source formatting don't apply

CodeLite installation/troubleshooting forum
PartyBoat
CodeLite Curious
Posts: 1
Joined: Sat May 10, 2014 1:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

My options for source formatting don't apply

Post 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!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: My options for source formatting don't apply

Post 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
Make sure you have read the HOW TO POST thread
Post Reply