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 205750 - PHP version. Question about code templates
Summary: PHP version. Question about code templates
Status: RESOLVED DUPLICATE of bug 206413
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 06:41 UTC by hinson0
Modified: 2012-01-25 14:14 UTC (History)
1 user (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 hinson0 2011-12-01 06:41:34 UTC
问题是这样:
在类中使用代码模板,会失效。
例如:class a {} 我定制了一个模板psf指定为public static function ${action_name}() {${cursor}} 当我在类中输入psf然后按tab展开。失效了。但是如果是在类外使用。是可以出来的。请解决该问题。否则我又要使用回7.0.1了。
Comment 1 Marian Mirilovic 2011-12-01 15:03:20 UTC
Google translation :

The problem is this:
Using the code in the class template, it will fail.
For example: class a {} I customize a template psf designated as public static function $ {action_name} () {$ {cursor}}
When I was in class and then press tab to expand the input psf. Ineffective. But if it is used outside the class. Is out. Please solve the problem. Otherwise I have to use a back 7.0.1.
Comment 2 suseu 2011-12-05 14:39:20 UTC
Same here. Additional notes:
-code expands properly outside class and inside a function that is in class
-predefined templates work properly inside class, e.g. "fnc" template
Comment 3 Ondrej Brejla 2012-01-25 14:14:04 UTC

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