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 245264 - Code Templates with Code Templates does not work
Summary: Code Templates with Code Templates does not work
Status: RESOLVED DUPLICATE of bug 242789
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 13:33 UTC by llemons
Modified: 2014-06-26 13:59 UTC (History)
0 users

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 llemons 2014-06-26 13:33:16 UTC
I use tab to expand code templates.
I have several custom code templates that stop at a var where one can enter data then hit enter to go to the next var until all the vars are modified.

An example, although not useful in this situation, is:
sw<TAB>

expands with the cursor highlighted over VAR:
        switch (VAR)
        {
            case value1:
                
                break;
            default:
                
                break;
        }

Type:
St<TAB>

The cursor advances to value1 highlighted and leaves St in the previous location instead of expanding the code template to String.

Like I said, this isn't a useful example, but it a default template that demonstrates the problem.  I have templates that expand to where I need one of a few other templates at a highlighted Var that needs changed and I can no longer use the templates in Netbeans 8.0, where in all the previous versions I have used worked.
Comment 1 Jiri Prox 2014-06-26 13:35:54 UTC

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