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 219194 - Custom code template not working in some cases.
Summary: Custom code template not working in some cases.
Status: RESOLVED DUPLICATE of bug 151633
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.3
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 16:43 UTC by Monomachus
Modified: 2012-10-16 15:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Monomachus 2012-09-28 16:43:17 UTC
I've got this template

medved 
{no-indent}var medved = "preved";

Steps to reproduce:
1. Type m 
2. Type space
3. Erase the space
4. Type edved. At this point we have written: medved
5. Type Tab. Nothing happens.

Note: when writing from start to end 'medved' without any editions it works.

It should also work when the word is somehow formed (with editions).
Comment 1 Vladimir Riha 2012-09-28 19:12:21 UTC
I think this is as designed and common in templates for all languages
Comment 2 Monomachus 2012-09-28 21:23:48 UTC
(In reply to comment #1)
> I think this is as designed and common in templates for all languages

May be, but still a bug IMHO
Comment 3 Martin Fousek 2012-09-29 20:18:24 UTC
(In reply to comment #1)
> I think this is as designed and common in templates for all languages

As Lada said, this should be default behaviour of Code Templates feature. Reassigning for evaluation into editor...
Comment 4 Dusan Balek 2012-10-16 15:27:28 UTC
Already reported. Thanks.

*** This bug has been marked as a duplicate of bug 151633 ***