NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[done] Go To Function Definition


Joined: 09 Dec 2003
Posts: 8
Reply with quote
It would be nice to be able to right click on a function you have defined elsewhere and choose something like 'go to definition' so that you could more easily work through problems.

Or is this already a feature and I've just missed where it is?

Thanks.
View user's profileFind all posts by mmsemajSend private message


Joined: 08 Feb 2007
Posts: 1
Reply with quote
I would agree I have used other editors and found extremely usefull.

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

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Find-Declaration (Shift+F12) does this.

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


Joined: 23 Aug 2007
Posts: 16
Reply with quote
That's a fantastic new feature in v5 !!
Is there also a shortcut to go back?
View user's profileFind all posts by leopoltSend private message
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
You can use the browser forward and browse backward buttons in the Navigator toolbar.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
Hmmm, I learned somthing new again. Thanks Smile

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 23 Aug 2007
Posts: 16
Reply with quote
wow, i haven't seen that before, thank you.
Alt+Up works as well...
View user's profileFind all posts by leopoltSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
dmitri wrote:
Find-Declaration (Shift+F12) does this.
And so does CTRL+mouse click Wink

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 04 Sep 2007
Posts: 2
Reply with quote
When you select 'Find definition', if there are many function definitions, can I have a windows to select wich is the good?

Thanks a lot
View user's profileFind all posts by BERMONSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
if you have multiple functions with the same name located in different files, it's either a poor design or is a good indication that you have different projects coupled together in one. If so, just break them back Smile

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

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
dmitri wrote:
if you have multiple functions with the same name located in different files, it's either a poor design or is a good indication that you have different projects coupled together in one.


You also run into this problem a lot when working with others' libraries, especially if they're not object-oriented. That's why there's a big demand for namespaces in PHP. (Unfortunately, it doesn't look like they're going to come anytime soon.)
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
They will do support for the namespaces at the moment when they find an implemetation that does not break the performance.
IMHO, perfomance of the proposed patches is not good because of php nature. If it supported library/module paradigm (get rid of includes in favor to use or link), it would be much easier to deal with namespaces.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[done] Go To Function Definition
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