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 183774 - Step Through and Highlight Function Parameters While Typing
Summary: Step Through and Highlight Function Parameters While Typing
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 183906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-09 13:57 UTC by mattygabe
Modified: 2016-09-22 03:48 UTC (History)
2 users (show)

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 mattygabe 2010-04-09 13:57:56 UTC
I have been very happy with NetBeans, however I feel that one enhancement that shouldn't be too difficult to implement can be one that is enabled/disabled is a popup window that will offer information regarding a function's (either PHP built-in or user-defined) parameter list that will iterate through that function's parameters as you are typing them in a function invocation (after function definition).  

The type of functionality that I am very used to (and spoiled by) is from Microsoft's Visual Studio.  Often times I define functions that have multiple (2+) parameters, and MSVS will show a slim pop-up window that provides the parameter datatype and name. As I type the function, and then type the opening parenthesis, it will pop up and show me the beginning of the list of parameters, starting with parameter one.  Because I am providing parameter one now, in the popup it is bolded so I am informed that is what I am providing now.  When I type a comma, it moves to the next parameter etcetera until I provide the closing parenthesis.

I understand PHP's data types are much more loosely handled and often times I don't even need to define or know them, but I do take the time to give meaningful names to my variables, and so just seeing those alone will help me remember what params are required.  If I require four parameters it's sometimes a pain to have to flip back and forth to reference which ones are needed.
Comment 1 rmatous 2010-04-09 15:11:06 UTC
partly duplicate of already fixed bug:
[Bug 182599] [69cat] AutoComplete Does Not Tab Through Parameters
http://netbeans.org/bugzilla/show_bug.cgi?id=182599

Anyway Ctrl+P is shortcut for invoking popup with parameters for method/function invocation. See http://blogs.sun.com/netbeansphp/entry/parameter_info for more info.

Is it what you are looking for? If not, please reopen and comment a bit, thanks
Comment 2 mattygabe 2010-04-09 19:23:33 UTC
(In reply to comment #1)
> partly duplicate of already fixed bug:
> [Bug 182599] [69cat] AutoComplete Does Not Tab Through Parameters
> http://netbeans.org/bugzilla/show_bug.cgi?id=182599
> 
> Anyway Ctrl+P is shortcut for invoking popup with parameters for
> method/function invocation. See
> http://blogs.sun.com/netbeansphp/entry/parameter_info for more info.
> 
> Is it what you are looking for? If not, please reopen and comment a bit, thanks

This was what I was looking for.  The CTRL+P option is excellent, however I was hoping for some more control over that. I enjoy the fact that each time I hit it it knows where I am in the parameter list, however every time I type a comma and then a space character, the popup disappears. Can the closing parenthesis be the ending character and not the space character?

CTRL+P works perfectly if I use no spaces after commas, but code readability is sacrificed by omitting spaces.
Comment 3 Filip Zamboj 2010-04-12 13:00:04 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > partly duplicate of already fixed bug:
> > [Bug 182599] [69cat] AutoComplete Does Not Tab Through Parameters
> > http://netbeans.org/bugzilla/show_bug.cgi?id=182599
> > 
> > Anyway Ctrl+P is shortcut for invoking popup with parameters for
> > method/function invocation. See
> > http://blogs.sun.com/netbeansphp/entry/parameter_info for more info.
> > 
> > Is it what you are looking for? If not, please reopen and comment a bit, thanks
> 
> This was what I was looking for.  The CTRL+P option is excellent, however I was
> hoping for some more control over that. I enjoy the fact that each time I hit
> it it knows where I am in the parameter list, however every time I type a comma
> and then a space character, the popup disappears. Can the closing parenthesis
> be the ending character and not the space character?
> 
added as enhancement #183906. Don't hesitate to add your comment. 

> CTRL+P works perfectly if I use no spaces after commas, but code readability is
> sacrificed by omitting spaces.
Comment 4 mattygabe 2010-04-13 17:27:48 UTC
Unless I am mistaken, in version 6.8 the CTRL+P shortcut works, however once you enter a space after the comma character, the popup disappears and you must continually press CTRL+P to re-enable the popup box for each parameter.  If you use no spaces and separate your parameters by commas alone, the popup remains and works as intended.

I also support the suggested enhancement:
http://netbeans.org/bugzilla/show_bug.cgi?id=%23183906

Which I think was part of what I was looking for in this bug.  

What I've described immediately above is what I think is a defect, however.  Please provide feedback.

Also, I may have mistakenly entered that I was using version 6.9 but I am using the current release 6.8.  If this has been corrected in the development build 6.9 please accept my apologies ahead of time.
Comment 5 Filip Zamboj 2010-09-15 12:31:14 UTC
batch reassigning
Comment 6 amobilia 2016-09-22 03:48:32 UTC
*** Bug 183906 has been marked as a duplicate of this bug. ***