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 208214 - PHP code completion selectors
Summary: PHP code completion selectors
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 19:18 UTC by oooshola
Modified: 2012-03-06 07:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oooshola 2012-02-09 19:18:56 UTC
Summary:
The Java code completion implementation has something called "completion selectors" (Tools > Options > Editor > Code Completion > Language: Java). It would be great if PHP code completion had the same functionality.

Visual Studio is another IDE that has this functionality built in, I think across all its languages.

Overview:
The completion popup for PHP requires you to press enter in order to select the top suggestion. However, it would be nice to explicitly set a list of characters in your settings that would automatically select the top suggestion. These characters would be the kind that frequently end a variable name, reserved word, function name, etc. The Java code completion options has this list of characters:

.,;:([+-=

So in PHP there could be something similar. That way, if I need to access elements in an array called $my_number_list, I could type '$my_nu' to eventually bring its suggestion to the top, then immediately type '[' without having to press enter to select it first (because the '[' character already selected it for me. So now I fully have '$my_number_list[' in the editor).

Hopefully this isn't a difficult feature to add to NetBeans.