[Lazarus] Ideas for improving lazarus.dci code templates

Michael Van Canneyt michael at freepascal.org
Wed May 13 13:32:46 CEST 2009

I can only agree with all Graeme's remarks, except the last, which I
think is a bit overkill.


On Wed, 13 May 2009, Graeme Geldenhuys wrote:

> Hi,
> Over the years I have noticed some shortcomings in the lazarus.dci
> handling. Here are some of my ideas. Please comment on them before I
> create official feature requests in Mantis.
> *  Lazarus should have seperate .dci files. One for "custom user
> settings" and one which contains the "default" .dci settings. That way
> if new default settings get applied to the lazarus.dci file, all users
> get it without the next Lazarus update. The lazarus.dci should live in
> the Lazarus install directory. Then we should have a user.dci in the
> profile directory.
> * If the user customizes an existing (default) code templates, they
> should be added to the user.dci file and override the default one.
> * This design which be extended even further to have language specific
> .dci files. Instead of lazarus.dci, rather have the following:
>    - objectpascal.dci
>    - java.dci
>    - html.dci
>    - javascript.dci
>    etc...
>   So as the IDE opens a file, lets say for example a "index.html"
> file, then the default code template for that file will be html.dci
>   The "synedit" editor available on sourceforge already includes a lot
> of language specific dci files. I post those to mantis if needed.
>  * Why doesn't the default lazarus.dci contain a "repeat...until' code
> template. I always add it myself though.
>  * Maybe project specific code templates could also be an option. I'm
> not sure is this is really relevant, but it might be handy. For
> example, I develop many tiOPF (Object Persistent Framework)
> applications. I have a lot of code templates for such projects. But if
> I work on a quick console application, those code templates are not
> needed. Some maybe Lazarus Packages or Project Options could contain
> an entry for project or packages specific code templates. Project
> Options is probably the better option.
> Your thought?  Any new suggestions?
> Regards,
>   - Graeme -
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

More information about the Lazarus mailing list