This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155862

Summary: code template enhancements
Product: php Reporter: michaelmezger <michaelmezger>
Component: CodeAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: blocker CC: tmysik
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: zend code template list
zend code template variables

Description michaelmezger 2008-12-19 21:11:20 UTC
Hi,

i have ideas for some improvements of the code template system:

1) Button for Available Variables: 
There is no overview about available "special-variables" within the code-template options. I had to ask for the vars in
the forum. So it would be great when you can add a Button like "Insert Variable". By clicking it, it expand a dropdown
with all available vars.

2) More Variables:
The available variables are very basic. Following Variables would be nice:
 * FunctionName
 * ClassName
 * Clipboard
 * ClipboardFirstLine
 * ClipboardFirstWord
 
3) At the moment there are two php-contexts/languages: php and php-documentor. A another enhancement would be a
additional languages: 
 * php-strings
 * sql-strings
Im writing sql-code quite often. The possibility to insert code in sql string via the code-template system would be very
helpful. SQL-Strings could be identified by the leading word in the string: SELECT, UPDATE, DELETE. (The ultimate
solution would be test against a sql keyword list)

best regards
Michael Mezger
Comment 1 michaelmezger 2008-12-19 21:12:09 UTC
Created attachment 75198 [details]
zend code template list
Comment 2 Petr Pisl 2009-01-07 15:50:11 UTC
Hi Michael, the attachment has probably wrong mimetype. Could you reattach it again with the png mimetype? 
Comment 3 michaelmezger 2009-01-07 15:58:16 UTC
Created attachment 75553 [details]
zend code template variables