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 - Code template suggestions
Summary: Code template suggestions
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-04 22:31 UTC by amobilia
Modified: 2016-09-14 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshoot (30.11 KB, image/png)
2016-09-04 22:31 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
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.