views:

585

answers:

1

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? im not sure if its just a window->preferences setting i dont see OR some kind of source code indexing i may have disabled which also dont find in the settings (if available)

anyone knows the right settings? im using eclipse 3.4.1 with pdt 2.0.0.v20081229

thanks all

+1  A: 

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.

Joey
I had it break on me in 3.4 at some point. running 3.5 beta (Galileo) without problems, though. And yeah... it can be a little slow at times to place the underline. I find there's no need to wait for the underline though. ctrl+click and wait a sec.
Jonathan Fingland
Oh, ok, I'll try again some time. But I still need to move my hand to the mouse; somehow I'm more of a keyboard person when it comes to coding :) even though my coworkers always use Ctrl+Click
Joey
well if it reacts that slow it sounds to me that CPU should be used by eclipse cause of the "search" - but eclipse does nothing in my caseon my linux box 'top' shows that java does nothing and even after a minute it doesnt workit doesnt work with Ctrl+left OR F3which sounds like the option is turned off - anyone knows where this can be enabled/disabled?anddoes this function work for class methods too - cause thats what im trying to open like $this->somefunction();
John Doe
In General > .... > Hyperlinking i have no entry for pdt and it seems there is no way to add ithmm - could be that my installation is broken
John Doe