John Doe
John Doe

Reputation: 2806

phpeclipse: jump to function definition?

From zend's IDE I know that Ctrl+left click on a function name opens the corresponding source file and jumps to the functions definition

Is there anything similar in eclipse especially phpeclipse OR CDT? I'm not sure if its just a window->preferences setting I don't see OR some kind of source code indexing I may have disabled which also don't find in the settings (if available)

Anyone knows the right settings? I'm using eclipse 3.4.1 with pdt 2.0.0.v20081229.

Upvotes: 5

Views: 7916

Answers (2)

lastYorsh
lastYorsh

Reputation: 583

Using Juno and PDT (PHP Development Tools) you can add this useful feature to a project in this way:

right click on the project -> Configure -> Add PHP Support.

Upvotes: 11

Joey
Joey

Reputation: 354694

Ctrl+Left click usually works in Eclipse as well, although it's horribly slow to react. For that reason I usually use F3 after moving the caret to the function name.

The thing with Ctrl+Click can be found in the preferences in "General > Editors > Text Editors > Hyperlinking". It can be turned off, there. But this function apparently required support from the respective editor/parser to be available at all.

The F3 key is bound to "Open Declaration" here. If that's not the case this mapping can be manually added, otherwise it may be that Eclipse is just not able to do that with PHP.

Upvotes: 3

Related Questions