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 267872

Summary: Code template suggestions
Product: php Reporter: amobilia
Component: EditorAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshoot

Description amobilia 2016-09-04 22:31:00 UTC
Created attachment 161900 [details]
Screenshoot

Netcat 8.2 : PHP Sanity -> Verify code completion in // comments

Steps

    Create // style comment .
    Invoke code completion at that line after //. 

Expected result:
Code completion doesn't appear. It shouldn't be available in comments.


=> Code templates are proposed
Comment 1 amobilia 2016-09-04 22:32:34 UTC
Same for code templates inside /* */ comments.

On this case (/* */), others suggestions can be good, but code templates are useless
Comment 2 amobilia 2016-09-04 22:39:01 UTC
Generically : code template should not be proposed : 
- in // comments
- in /* */ comments
- inside a catch() function
Comment 3 amobilia 2016-09-04 22:40:39 UTC
Nor after typing :
-----
$this->
-----
And calling code completion
Comment 4 mrpc 2016-09-14 14:46:39 UTC
I marked that as passed when I was doing the sanity test, because I believe code templates and code completion are different things. 
The way I see it, code templates can even contain stuff to add in comments if I want to do that, it's in my hand how to use it.
Also, in the settings, code completion and code templates are a different setting.