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 169087 - Ability to view class/method/function signature (plus code snippet) on mouseover/hover
Summary: Ability to view class/method/function signature (plus code snippet) on mouseo...
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 5 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 01:32 UTC by markeb
Modified: 2018-02-02 12:15 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 markeb 2009-07-24 01:32:07 UTC
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!
Comment 1 markeb 2009-07-27 18:19:08 UTC
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.
Comment 2 cezariusz 2014-05-09 09:11:51 UTC
Couldn't agree more. That's the first thing most users complain when switching from the Eclipse. You have my vote.
Comment 3 mtamassia 2015-01-02 15:33:54 UTC
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.
Comment 4 Martin Balin 2016-07-07 07:31:53 UTC
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
Comment 5 Christian Lenz 2017-02-28 12:13:53 UTC
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
Comment 6 tedtrippin 2018-02-02 12:15:05 UTC
How do I +1 this?

I would have hoped this was a quick feature to add and oh so worthwhile.