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 243497 - Provides a Auto-complete function also for array indexers
Summary: Provides a Auto-complete function also for array indexers
Status: RESOLVED DUPLICATE of bug 198877
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 21:45 UTC by joao_neto
Modified: 2016-09-22 18:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Log do IDE (32.78 KB, text/plain)
2014-04-02 21:45 UTC, joao_neto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joao_neto 2014-04-02 21:45:07 UTC
Hello!

This is a feature request.
well,
I think it would be something very interesting that the editor also discovered PHP array indices that were used in the script, such as:
<?php
//my script example

if( !$_POST['login'] || !$_POST['password'] ) {
//redirect to login page
exit();
}

if( $_POST[' (...) )
On this time, when i press CTRL + SPACE keys, netbeans editor open a autocomplete popup with my discovered keys:
______________________________
|   [ ] $_POST['login']           |
|   [ ] $_POST['password']    |
_____________________________

This can be very useful when i work with associative arrays with database or other datatype that use associative arrays!

Thanks and hope the idea helps to improve our beloved IDE =)


Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.13.7-200.fc20.x86_64 running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 joao_neto 2014-04-02 21:45:12 UTC
Created attachment 146518 [details]
Log do IDE
Comment 2 amobilia 2016-09-22 18:54:57 UTC

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