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 - code template enhancements
Summary: code template enhancements
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-19 21:11 UTC by michaelmezger
Modified: 2010-09-17 05:30 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
zend code template list (53.34 KB, text/plain)
2008-12-19 21:12 UTC, michaelmezger
Details
zend code template variables (53.34 KB, image/png)
2009-01-07 15:58 UTC, michaelmezger
Details

Note You need to log in before you can comment on or make changes to this bug.
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