[Lazarus] How to change Class Completion for Setter methods

Sven Barth pascaldragon at googlemail.com
Mon Jan 25 16:19:21 CET 2016


Am 25.01.2016 12:16 schrieb "Graeme Geldenhuys" <
mailinglists at geldenhuys.co.uk>:
>
> Hi,
>
> When I do class completion in Lazarus for a property with a setter
> method I get code as follows:
>
>
> procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
> begin
>   if FAlignment = AValue then Exit;
>   FAlignment := AValue;
> end;
>
>
> How, if at all, do I change that code formatting to his:
>
>
> procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
> begin
>   if FAlignment = AValue then
>     Exit;
>   FAlignment := AValue;
> end;
>
>
>
> Note that the latter example has a line break after the if..then
statement.

You are not the first who wants this ;)
http://bugs.freepascal.org/view.php?id=15922

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160125/89feecb0/attachment-0003.html>


More information about the Lazarus mailing list