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.
I would like to see the function signature (name, location, parameters) and (if enabled) the associated documentation on mouseover or hover after a certain amount of time (specified in the options). This would be similar to the Ctrl+Shift+Space functionality. Additionally (and/or alternatively), perhaps you can allow the customization of the Ctrl+Hover functionality to do just this. Lastly, in all of the above cases, there should be a way to show the entire class/method/function's code in addition (or in lieu of) the documentation. Sometimes a piece of code is not properly documented, and the actual code must be viewed. Right now, NetBeans supports a Ctrl+Click to go directly to the pertinent code, but it would be nice if this could be previewed within the editor, similar to the way Eclipse shows a code preview of classes/methods/functions. Thanks!
NOTE: The terminology I am using pertains to PHP. Let me clarify Eclipse's behavior (which I happen to like), although NetBeans doesn't necessarily have to operate the same way: Mouse hover (no keys held down): - Simply hovering on a method/function with the cursor pops the method signature w/ documentation. - Hovering on a variable displays its location. Ctrl+Hover: - Ctrl+Hover on a method/function will display the code of that method/function in a small layer that pops up. You can press F2 to give "focus" to that layer, which will allow you to scroll horizontally and vertically. - Ctrl+Hover on a variable will display the line of code (minus the semicolon) that first assigned a value to that variable in its scope (the line where the variable was defined). Ctrl+Click: - Ctrl+Click on a method/function will jump to the method/function definition (popping a new editor if necessary). - Ctrl+Click on a variable will jump to the variable definition/original assignment (popping a new editor if necessary). I would imagine constants would be addressed similarly to variables. Note on Behaviors Above as Pertaining to Classes: Eclipse will perform all of the same actions above as with methods, except the method is the class's constructor.
Couldn't agree more. That's the first thing most users complain when switching from the Eclipse. You have my vote.
I have been using Eclipse for a long time and this feature is one of the few things that Netbeans is lacking that keeps me from switching completely away from Eclipse.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
It is related to these tickets: https://netbeans.org/bugzilla/show_bug.cgi?id=267375 and https://netbeans.org/bugzilla/show_bug.cgi?id=269946
How do I +1 this? I would have hoped this was a quick feature to add and oh so worthwhile.