Code Snippets in KDevelop4

Matt Rogers mattr at kde.org
Tue Aug 1 23:28:00 UTC 2006


On Tuesday 01 August 2006 08:31, Robert Gruber wrote:
> Hello,
>
> is there any special commit policy for KDevelop4 in SVN-trunk? Or is it
> free to commit?
>

I watch all the KDevelop commits, so yes, it's free to commit. If i don't 
understand something, I'll be asking questions.

> The reason why I'm asking is, that I'm planning to do a complete rewrite of
> the SnippetPart. The way I've implemented the SnippetPart for KDevelop-3.x
> has many limitations. What I want to do is mainly inspired by MS Visual
> Studio 2005 and also by the Bug 106165.
>
> Some of the planned key features will be:
> *) Several snippet repositories (Each repository in a directory)
> *) Subdirectories in a repository can be used to group snippets
> *) Each snippet gets stored in a separat plaintext file
> *) Each snippet can have several meta information (author, language,
> environment, ...)
> *) Repositories can be defined either global or for each project
> *) A SnippetStore holds all available snippets for the current project
> *) The SnippetView displays the Snippets from the SnippetStore (can also be
> filtered based on the meta-information)
> *) new variable replacement code and dialog
> *) Drag and drop support
> *) XML-export of repositories for transfer between PCs (if no samba-mount
> is available)
>
>
>
> What do you think about it?
> IMHO this is definitely a feature that an IDE like KDevelop must have.
>
>

In general, I'm glad to see the snippets part make a comeback, but I feel like 
some of your ideas are overengineered for what should, IMHO of course, be a 
relatively simple plugin.

Why do we need repositories for code snippets? This needs more explaining in 
order for me to better understand it. Do I need to go read bug 106165?
--
Matt






More information about the KDevelop-devel mailing list