[Lazarus] Code Completion Templates

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 5 18:30:38 CET 2013


Donald Ziesig <donald at ziesig.org> hat am 5. Februar 2013 um 23:16 geschrieben:
> Hi All!
>
> Could anyone point me at the file(s) containing the templates invoked
> with Ctrl-Shift-C?
>
> Specifically I would like to replace the Set<Param> code that expands to:
>
> if(AValue=f<Param>) then exit;
> f<Param>=AValue;
>
> with
> Update(f<Param>,AValue); // Keeps track of modifications to the
> underlying object.

It's hard coded.
See components/codetools/codecompletion.pas around line 6730.

You can create a feature request or a patch to make this configurable.

Mattias




More information about the Lazarus mailing list