[Lazarus] Format code on Save

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jan 25 14:15:42 CET 2017


On Wed, 25 Jan 2017 11:28:21 +0000
Graeme Geldenhuys via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

> Hi,
> 
> As the subject lines says. If you set up the Jedi Code Formatting
> options, is there a way to tell Lazarus to automatically format the unit
> when you Ctrl+S (Save)?  Eclipse IDE does that (and much more fine
> grained if needed) with Java code, at it is actually super useful, and
> always results in neatly laid out code. So I was wondering if Lazarus
> IDE could do something similar with JCF, or would that require patches
> to accomplish?

There is only an event before saving all yet.
I can add an event called before saving a source editor file.
Would that help you?

Does the JCF formatter work with bookmarks, folds and breakpoints?

Mattias


More information about the Lazarus mailing list