views:

168

answers:

2

Suppose I know a function name, but I dont know which file it's declared in.

What's the Eclipse keyboard shortcut to take me to the function I'm looking for.


What I'm looking for is similar to Eclipse's:

Ctrl + Shift + R

except it will search for method names instead.


Sidenote

With Visual Assist X, I can do this by using the "Find Symbol" feature, which is executed with:

Shift + Alt + S

+2  A: 

Not sure if this is exactly what you want, but if you 'Cntrl-H', that'll bring up the search dialog. The default option (for me, using the Java EE perspective) is a Java search. I can type in the method name, and then select the 'Method' radio button under the Search For block. Note that the default option (again, for me) for the 'Limit To' block was the 'References' radio button. I had to change that to 'All occurences' in order to see the method declaration, and not just callers.

elduff
I completely missed your answer (I was busy preparing my meme-compliant screenshot, see http://meta.stackoverflow.com/questions/19478/the-many-memes-of-meta/19775#19775). But I agree with your description of the solution. +1
VonC
+2  A: 

Not exactly a direct shortcut, but you need to go through the Java Search dialog:

(Ctrl+H):

alt text

VonC
@VonC: just out of curiosity...what kind of program do you use to create such a nice-looking screenshot?
ShaChris23
@ShaChris23: Fastone Capture (http://www.faststone.org/FSCaptureDetail.htm)
VonC
Nice. I haven't seen too many posts with screenshots, but that does look great!
elduff