X

An Oracle blog about NetBeans for PHP

Parameter Info

This week I am going to write about editor improvements, which are available in the development builds. I hope that I will have time to introduce a new feature every day. The feature freeze for NetBeans 7.0 Milestone 1 was already reached and these improvements will be also available in this M1. If you will try the development builds and run into a problem, enter new issue into Issuezilla  (category php, subcomponent editor).

The first new feature, which I want to introduce is parameter info. When you use a function and you don't remember the parameters you can use CTLR+P shortcut to show the parameters in a small popup window as it is displayed on the picture.

As you can see the parameter is bold that corresponds to the cursor position.

Also if a function has parameters with a default value, then the default value is displayed for the parameter. 



Join the discussion

Comments ( 17 )
  • pcdinh Monday, December 8, 2008

    Great

    I have a question:

    Can Netbeans PHP show up DocBlock for each parameter in case the methods or functions are documented like this:

    /\*\*

    \*

    \* @param string $name User name

    \* @param int $ttl The maximum time that user name can be stored in memory

    \*/

    public function persistIdentity($username, $ttl) {

    }

    I am in a process to evaluate Netbeans IDE as alternative to Eclipse PDT which is used as the main PHP IDE in our company.

    Netbeans PHP feature sets are quite impressive to me


  • Richard Hyde Monday, December 8, 2008

    Are NB 7 snapshots the only way to get updates for the PHP plugin? NB 6.5 Beta 2 was great for PHP but NB 6.5 is almost useless with big performance regressions.


  • Michal Tuesday, December 9, 2008

    Hello,

    I also think that this functionality should support phpdoc.

    Maybe it should just show window, which you see when you use content asist for functions? I mean window which describes function and its parameters.

    This window could be show over parameters popup.


  • Petr Tuesday, December 9, 2008

    Hi Richard,

    it should be in opposite way. There was done many fixes from beta to fcs to fix performance. Could you describe more?

    Also you can unzip and use the development build. For more info look here: http://blogs.sun.com/netbeansphp/entry/userdir .

    Thanks,

    Petr


  • Petr Pisl Tuesday, December 9, 2008

    To pcdinh: If you place cursor on the function name and press CTRL+SHIFT+SPACE shortcut, then the PHP doc for the function is displayed in the popup window. It's the same window, which is shown together with code completion window. The cursor has to be inside the function name.

    Petr


  • Michal Tuesday, December 9, 2008

    To Petr:

    Are those shortcut somewhere documented? And is this functionality implemented in nb 6.5? I was looking for this functionality for long time - i tried to hover mouse cursor over function and excepted that it will show php doc for function (it works this way in eclipse).


  • gawan Wednesday, December 10, 2008

    I use ubuntu 8.04. Why are this parameters not antialiased? I tried last nightly build (200812091520) and on ubuntu are toolbars too wide height and editor window are "skipping" for some pixels ... is it some bug?


  • Petr Wednesday, December 10, 2008

    To Michal:

    If you invoke Keyboard Shortcut Card in Help menu, you get an overview of the most used shortcut, but it's for NB 6.5. But this card doesn't contain CTRL+P.

    I think, if you want to know all possible action you have to go to Tools->Options->Keymap.

    To gawan:

    >Why are this parameters not antialiased?

    I have noticed this as well. It looks like a bug. Could you enter it in our Issuezilla?

    >I tried last nightly build (200812091520) and on

    >ubuntu are toolbars too wide height and editor

    >window are "skipping" for some pixels ... is it

    >some bug?

    Yes, this is a regression from yesterday. It should be fixed in todays build.

    Thanks,

    Petr


  • gawan Wednesday, December 10, 2008

    I enter antialiasing bug in issuezila.

    And I have one question of this blog. I check "Notify me by email of new comments" and filled my email address but I do not get any notification about next comments. Is it some bug?


  • Petr Thursday, December 11, 2008

    To gawan,

    thanks for entering the bug.

    I'm sorry for the inconvenience with sending notifications. I will try to investigate the situation.

    Regards,

    Petr


  • Petr Thursday, December 11, 2008

    To gawan: I was asking other people and I have got this answer:

    I get new comments. There are two places to enable this: one when you write the email and one somewhere in the Account Prefs/Options portion of your account. The Options in my account is always enabled and I always check the box when I write the comment. Maybe both places need to be 'on'?

    I don't know whether it helps.

    Petr


  • gawan Friday, December 12, 2008

    To Petr about notification: sorry for annoying you, but you wrote:

    1. "when you write the email" do you mean "Post a Comment"? Because when a write a comment I do not write emails I use only "Post a Comment" form upon each articles. And I fill Name and E-mail of course and also I check "Notify me by email of new comments". And I mean this should be enough...

    2. Which account do you mean? Because on this blog I cannot find login/reg. box. And on http://blogs.sun.com/ is write "Login for Sun employees only" but I am not employee of Sun. Can you send me a link where can I register?


  • gawan Friday, December 12, 2008

    sorry not "upon" but "under or below" of each article ;)


  • Petr Sunday, December 14, 2008

    Hi Gawan,

    sure I thought "Post a Comment" :). So far it looks like a bug. I will try to discuss this with people, who take care about the blog server.

    Thanks,

    Petr


  • Mikhail Matveev Wednesday, December 17, 2008

    Tested. The issue 155670 has been filed.


  • Adam Jorgensen Wednesday, February 25, 2009

    Is there a way to remap the CTRL+P binding for this utility?

    CTRL+P is reserved by jVi for hippy completion and hence the the PHP behaviour does not work.


  • buy wow gold Thursday, October 29, 2009

    Great post and draw. Thank you for sharing.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.