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.
You can create new template in three ways. 1) In Template Manager through Duplicate button 2) In Template Manager through Add button 3) In project view invoking Save As Template... action from context menu If you create new file from template, which was added through the first case, then the template is processed with an scripting engine, so for example ${user}, ${date} etc. are replaced correctly. Unfortunately the templates created through the second and the third case don't have assigned template engine, so they are not processed with any scripting engine. This is inconsistent, because as a result, there are not replaced the texts like ${user}. The best fix would be to provide simple UI in Add template and Save as Template dialogs, where user can choose an scripting engine from registered engines in NetBeans.
fixed in core-main/rev/e0dacb6e3de2
Integrated into 'main-golden', will be available in build *200812070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e0dacb6e3de2 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #140256: Templates - inconsistent behaviour