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.
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
Created attachment 75198 [details] zend code template list
Hi Michael, the attachment has probably wrong mimetype. Could you reattach it again with the png mimetype?
Created attachment 75553 [details] zend code template variables