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.
Summary: | Auto completion not working inside comments. | ||
---|---|---|---|
Product: | php | Reporter: | jkaushalya |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | NEW --- | ||
Severity: | normal | CC: | amobilia |
Priority: | P2 | ||
Version: | 7.1.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Screen Shot |
Description
jkaushalya
2012-06-02 16:14:48 UTC
Created attachment 120241 [details]
Screen Shot
Comments has been rewritten at all for NB 7.2. It's an enhancement for next release (and afaik it never worked before). Reproductible in 8.2rc / Dev 201609210002 It actually works in NB8.2 *but* as long as the actual variable appears *prior* to the comment. /* @var $c|Ctrl+space */ $channel = new Channel(); Shows no auto-completion while $channel = new Channel(); /* @var $c|Ctrl+space */ Does show one. ----- It seems counter-intuitive to create the PHPDoc after the actual variable declaration, and move it up before... Still, it can be done that way. It will also make the refactoring work for the PHPDoc. Ie, refactoring $channel here won't refactor the comment: /* @var $channel Channel */ $channel = new Channel(); While here, it does so $channel = new Channel(); /* @var $channel Channel */ |