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 194737

Summary: uniqueness of code templates' abbrievations
Product: editor Reporter: mcinp
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description mcinp 2011-01-26 14:06:42 UTC
When defining code templates there's a restriction that an abbrievation can only be used 1 time.
But in many text editors it is possible to define many templates for 1 abbrievation so that when an abbrievation is entered and there are more than 1 template defined for it, the user is presented with a list of options to choose.
For example, in html we could define entries for abbrivation "input" where options would be:
<input type="text"...
<input type="button"...
<input type="checkbox"...

etc.

This is a trivial example, but this technique has more advanced applications.