[Lazarus] Format code on Save

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 23 08:52:47 CET 2017


On Thu, 23 Feb 2017 00:40:13 +0000
Graeme Geldenhuys via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

> On 2017-01-27 14:37, Mattias Gaertner via Lazarus wrote:
>[...]
> > LazarusIDE.AddHandlerOnSaveEditorFile(@YourEvent);  
> 
> 
> A bit late, but thank you for adding that functionality. I've now
> managed to create my IDE add-on and it works.
> 
> But I noticed that with every save (Ctrl+S), the YourEvent gets called
> twice?  Any idea why that is, and if it was by design or a bug?

Check parameter SaveStep.

Mattias


More information about the Lazarus mailing list