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

Summary: PHP version. Question about code templates
Product: php Reporter: hinson0
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: tmysik
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***