On Wed, 14 Mar 2007 11:02:04 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Has anybody thought or started implementing Code Templates like
> Borland Developer Studio (BDS) 2005/2006 does?

Yes.

 
> It's pretty much normal code templates but on steroids. :-)
> It's a lot more intelligent templates, knowing what parts of code to
> replace, when each template applies based on the cursor location in
> the unit, must it be invoked manually or automatically, etc.

Already working in Lazarus:
- Ctrl-J
- Macros
- Registering your own macros

Missing:
- auto invoke on Space
- interactive placeholders with dialog (already started)
- interactive placeholders in source (like in Delphi or CodeRush)
- contexts for auto invoked code templates

Open for discussion:
- Importer for Delphi code template xml files (IMO atm it is easier to
convert the few existing templates manually)

 
> For more information see the following:
> 
> http://delphi.wikia.com/wiki/Delphi_Live_Templates
> http://delphi.wikia.com/wiki/Live_Templates_Technical_Info
> http://85.146.33.29/Weblog/Blog.aspx?RootId=5:285
> http://blogs.teamb.com/deborahpate/articles/22331.aspx

Nice list.

 
> You can also Google "BDS code templates" for many more examples.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to