NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Show phpdoc for a function when hovering over the name


Joined: 08 Feb 2007
Posts: 4
Reply with quote
One that Eclipse does that is really useful and PhpED doesn't do is to show the phpdoc comments for an object or function when the mouse hovers over some code that invokes the function. This useful because I don't always remember the exact invocation syntax for a function and having this popup as a tooltip type text block save a lot of time bouncing around in the code.
View user's profileFind all posts by RocanionSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Hmm, as I see phpdoc comments are there...

and there

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 08 Feb 2007
Posts: 4
Reply with quote
Ah, I see that the tips popup when I'm typing a function name. I had been expecting that if I hovered over an already typed name that I'd also see the tip popup and that doesn't happen. Granted, it is more useful for it to popup when first typing in the code.

I do, however, sometimes change the calling characteristics of a function, then update the phpdoc comments, then go look for the places where the code invokes the function. In this situation having the phpdoc popup when hovering over the name is a useful way to remind me of the changes that I need to make in the existing code to match the revised calling interface.
View user's profileFind all posts by RocanionSend private message


Joined: 21 Sep 2006
Posts: 17
Reply with quote
you can easily call up the tooltip even on pre-written code.

If you position the cursor within the function brackets, then hit Ctrl-Shift-Space, the tooltip appears. Very Happy

Hope that helps, only just found this out myself when browsing the forums.
View user's profileFind all posts by stafforjSend private message
Show phpdoc for a function when hovering over the name
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic