Bug#42293: code snippet feature like in codewright

kmdlinux at yahoo.com kmdlinux at yahoo.com
Tue May 7 15:19:02 UTC 2002


Package: kdevelop
Version: KDE 3.0.0 
Severity: wishlist
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Snippet feature is very useful while doing some repetitive work(writing comment for a function, basic program etc).
CodeWright does support generic snippets which prompt the user for some input as specified in snippet and generates a specific text.

For example a snippet can be,

/*
 * Function : %FUNCTION%
 * Description: %DESCRIPTION%
 */

When we run the above snippet, it prompt the user for FUNCTION and DESCRIPTION and generates the following text.
( Assuming Values given b the user are 'MyFunction' and 'My Description' respectively)

Output:

/*
 * Function : MyFunction
 * Description: My Description
 */


A snippet file should describe the type of input fields and the data. From the description of input fields a form can be generated dynamically and shown to user ( or prompt for each input field, wiered)









(Submitted via bugs.kde.org)





More information about the KDevelop-devel mailing list