[Lazarus] Remove unmatched vars in published

Fabio Luis Girardi fluisgirardi at gmail.com
Thu Oct 25 19:42:32 CEST 2018

Hi Martin!

Em qui, 25 de out de 2018 às 14:14, Martin Frb via Lazarus <
lazarus at lists.lazarus-ide.org> escreveu:


> The problem with removing it later, is that the IDE can not know, if you
> added any fields yourself.

When I add some field in a published section of a class, I avoid use the
space where the IDE declares the form components/controls. I declare a new
published section, something like this:

TForm1 = class(TForm)
  //I dont declare published fields here.
private / protected / public
  ... some private / protected / public fields ...

But this is a question related with how each one handles their codes, which
is not the point here.

What's I'm suggesting is, a feature, like "Source -> Refactoring -> Empty
methods..." but with a option (Source editor options) to enable/disable the
published cleanup when saving the form.

> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus

The best regards,

Fabio Luis Girardi
PascalSCADA Project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20181025/b960695b/attachment.html>

More information about the Lazarus mailing list