NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Autocomplete/Code Insight for array key names?


Joined: 16 Jul 2008
Posts: 3
Reply with quote
Example:

Code Insight will pop up just fine for the variable's name itself, like:

$ar[TAB]
$array

But it does not complete the names of keys that have already been defined elsewhere in the file/project:

$array['er[TAB]
$array['er

Many other editors are able to handle this, and I was surprised that PHPEd is not. Is this hidden in some option I do not see, or is this not in the program?
View user's profileFind all posts by Vincent LawSend private message


Joined: 10 Feb 2007
Posts: 48
Reply with quote
This will get you half way there: can-code-templates-be-inserted-like-autocorrect-t5019.html
View user's profileFind all posts by StorymanSend private message


Joined: 16 Jul 2008
Posts: 3
Reply with quote
Maybe, but that's hardly an ideal solution. That'd require me to set up all of them ahead of time, which is hardly worth it.
View user's profileFind all posts by Vincent LawSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
A feature like this would be great. Even just supporting the keys in the built-in arrays like $_SERVER would already be a big step forward.

[Moved to Feature Requests for PhpED]

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 10 Feb 2004
Posts: 93
Reply with quote
+1.

like anno said, even if it were implemented just for the super globals, i'd be happy.
View user's profileFind all posts by gilzowSend private messageAIM Address


Joined: 28 Jul 2008
Posts: 13
Reply with quote
That sounds like a great idea, I wonder if it would be possible to handle keys such as $array["blah$var"]
View user's profileFind all posts by herculesmorseSend private messageMSN Messenger


Joined: 25 Jul 2007
Posts: 7
Reply with quote
+4 from our office
View user's profileFind all posts by hydrantSend private messageICQ Number
Autocomplete/Code Insight for array key names?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic