[Lazarus] Live Templates

Mattias Gärtner nc-gaertnma at netcologne.de
Wed May 13 15:56:24 CEST 2009

Zitat von Lee Jenkins <lee at datatrakpos.com>:

> Graeme's recent post made me wonder if there is been work or talk of work on
> implementing Live Templates like Delphi has?


1. Lazarus will not support the Delphi syntax, because Lazarus already  
supports code macros. There are already some code macros using the  

2. auto complete without pressing a short cut already works for  
return, space and word end.
Some code macros are needed to fine tune adding text if parts of the  
template already exists (for example auto complete 'begin' after  
pressing return). But this is stuff for another thread.

3. templates with parameters: editing the parameters directly in the  
source editor (synedit) without a dialog. synedit needs a further edit  
mode for marking and editing several places in parallel. Martin has  
already implemented marking several places. I guess he can also create  
a plugin/extension/mechanism for the needed edit mode. When this is  
done, I will be glad to implement the rest.
This edit mode is also needed for in situ rename.

> I imagine that that kind of behavior is a bit of work to implement.

Yes, but I bet Martin has already some ideas for synedit.


Powered by NetMail

More information about the Lazarus mailing list