Holding the control key [command key in Mac OS X] in NetBeans will mark functions, methods, and variables with an underline. Holding the key and hovering over functions and methods will reveal their documentation in a sort of tool tip, if such documentation is available. This is in addition to opening the documentation panel with the Control + Shift + Space key combination.
The presentation of the documentation tip is available with the Control + Hover event on method definitions as well as their usage. Oddly however, it's not available with function definitions. With function definitions, the IDE presents a brief, and unhelpful tool tip just identifying the function and the file it belongs to.
It should be noted, that the details identified here are using NetBeans 8.1 with PHP on Windows 7 Professional Service Pack 1, as well as Mac OS X 10.11.2 and Ubuntu 15.10. The behavior may be different with other languages. A quick check with some JavaScript code confirmed that everything works as expected with that language.
Function documentation on usage with Control + Hover.
The presentation of the documentation tip is available with the Control + Hover event on method definitions as well as their usage. Oddly however, it's not available with function definitions. With function definitions, the IDE presents a brief, and unhelpful tool tip just identifying the function and the file it belongs to.
Function documentation on definition with Control + Hover. Note that nothing meaningful
is rendered as it is with the usage example.
It should be noted, that the details identified here are using NetBeans 8.1 with PHP on Windows 7 Professional Service Pack 1, as well as Mac OS X 10.11.2 and Ubuntu 15.10. The behavior may be different with other languages. A quick check with some JavaScript code confirmed that everything works as expected with that language.
Comments
Post a Comment