Bug 42293 - code snippet feature like in codewright
Summary: code snippet feature like in codewright
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: file create (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-07 13:18 UTC by kmdlinux
Modified: 2004-01-30 12:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kmdlinux 2002-05-07 13:08:39 UTC
(*** This bug was imported into bugs.kde.org ***)

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)
Comment 1 Alexander Dymo 2004-01-09 00:32:15 UTC
Your wish is granted by Robert Gruber who wrote snippet part for KDevelop. It can be downloaded from http://kmp3indexer.sourceforge.net/misc/.
Leaving this open till the release. Then snippet part will be included into KDevelop source tree.
Comment 2 Amilcar do Carmo Lucas 2004-01-30 12:02:51 UTC
snippet part is now in HEAD (KDE >= 3.2) branch of KDevelop.