NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Goto definition of function *solved*


Joined: 12 Oct 2005
Posts: 12
Reply with quote
Is there to quickly jump to the definition of a function from the line where it's being called?

Like:

View user's profileFind all posts by derekkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
jump-to-a-declaration-t1599.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
ddmitrie wrote:
http://forum.nusphere.com/viewtopic.php?t=1599

That topic shows only how to go to definition when you are still writing the code (using code completion). After you already wrote it, you get only a small window tip showing where is the definition. I'd like to suggest to add it to the context menu or maybe a key shortcut. Or maybe I missed something....
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
If for example you typed $somevar->somemethod(|) and cursor is in the location denoted with "|" symbol, you may move cursor on the left so it appears just before opening bracket, and press Ctrl-Space. In the shown dropdown you'd see this method and green right arrow [->] in the status bar below. Click on this arrow to navigate to the definition. You may want to select Browse Back (Alt-Up) to return back.
I know it's not so strightforward. We're working on this issue.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 Oct 2005
Posts: 12
Reply with quote
Yeah sorry, I was referring to jumping to the definition of a function call that already exists in the document as HotShot described - not at the time of code completion.

There needs to be a right-click path to the definition as in Visual Studio. The other way is too clunky... This is my biggest complaint about phpEd right now =)
View user's profileFind all posts by derekkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
4044 already has Find Declaration for classes, methods, properties, local and global variables and finally constants.
The only remaining thing to be done is ability to jump over with mouse click while Ctrl is pressed.
I think it won't take long.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
Is build 4044 already available for customers?
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
This feature is available in v 4.0.1 (build 4048) which is publicly available right now

View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 28 Nov 2005
Posts: 144
Reply with quote
in my build (4048) usgin "Find declaration" the cursor very often goes 3,4 lines before the funcion definition (often inside the code of the previous function, other times on blank lines other times at the beginning of the phpdoc comment)

is there a way to a have a "Find references" like eclipse does for java?
View user's profileFind all posts by blackSend private message
Goto definition of function *solved*
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