Forum > Editor

Format Code before save automatically

(1/2) > >>

aag031:
Dear All
Is there possibility formatting code  automatically before saving?

From other hands

Is there possibility when user clicks save button code is formatted then saved
I did not find this possibility in options configuration.
I've started to use Lazarus recently, may be I missed something


WBR
Alexander

AlexTP:
Seems no 'on save'. But you can call IDE menu "Souce / Jedi code format" menu to run it.

Zvoni:
I have no idea why someone would need such a feature.....

Sniper:

--- Quote from: Zvoni on February 22, 2022, 10:43:27 am ---I have no idea why someone would need such a feature.....

--- End quote ---

If you works in a team then you definitely have to follow for style guides. :)

af0815:

--- Quote from: Sniper on May 06, 2022, 09:49:09 am ---
--- Quote from: Zvoni on February 22, 2022, 10:43:27 am ---I have no idea why someone would need such a feature.....

--- End quote ---
If you works in a team then you definitely have to follow for style guides. :)

--- End quote ---
But then you have it to use _before_ save. Because ia team you use normal a Sourcecontrol tool and it is not good, automatic styles are automatic added on code. It confuses the diffs. It is hard enough with lineendings on the the three platforms and GIT.

Navigation

[0] Message Index

[#] Next page

Go to full version