12

There is a shortcut in IntelliJ I'm looking equivalent in Eclipse, it is called 'Go to symbol'. CTRL-ALT-SHIFT-N lets you start typing and glob up classes, method names, variable names, etc, from the entire project.

Does someone know if there is such thing in eclipse?

Jaime Hablutzel
  • 6,117
  • 5
  • 40
  • 57
  • funny I was looking for the opposite, i.e. I knew the shortcut in Eclipse but not in IntelliJ... yet your question between being detailed enough helped me anyway :-) – dm76 Apr 15 '12 at 17:11
  • Is there such a shortcut for Eclipse? – Jaime Hablutzel Apr 16 '12 at 21:10
  • 1
    well yeah... that was your question wasn't it? and the answer is.. well the one you accepted – dm76 Apr 18 '12 at 17:41
  • Yes, exactly haha anyway the solution isn't a total replacement for the IntelliJ shortcut that allows you to search for methods – Jaime Hablutzel Apr 18 '12 at 18:55
  • http://stackoverflow.com/questions/2685467/eclipse-keyboard-shortcut-goto-function-name – Ciro Santilli OurBigBook.com Apr 05 '17 at 16:30
  • [open element](https://stackoverflow.com/a/47189481) is much closer to what was asked IMO. Proposed alternatives (e.g. go to definition) are often more useful, but they are not what was asked. The dialog of "open element" is still useful to find something that is not in any editor ATM. – ricab Nov 08 '17 at 21:03

5 Answers5

12

General

For type names, you can use control-shift-t (open type) and enter partial names with globs or by upper letters in the camel-case name (like DTM for DefaultTableModel).

For resources (non java files like xml, properties, etc), you can use control-shift-r

For method and variable names, you'd need to use the Java Search function (the flashlight icon on the toolbar).

In the Java editor

If you're looking for references to a symbol in the editor, click on it and press control-shift-g.

If you're looking for the definition of a symbol in the editor, control-click or click on it and press F3.

If you want to find implementations of a symbol (like an interface or method that may be overridden) in the editor, press control-t on it.

Scott Stanchfield
  • 29,742
  • 9
  • 47
  • 65
3

This may be a Flash Builder-only thing, but ctrl+o will do the trick if you're just looking within the class you're in (which I realize is a variant of your specific question but is helpful and similar anyway).

clows
  • 332
  • 5
  • 11
Aaronius
  • 4,936
  • 6
  • 31
  • 40
0

You can look at: Navigate > Open From Clipboard. Shortcut assigned in Neon for this: Ctrl+Shift+V.

Noopur Gupta
  • 144
  • 1
  • 8
0

Eclipse allows you to search the project. That's probably the closest to what you're looking for.

Gilbert Le Blanc
  • 50,182
  • 6
  • 67
  • 111
0

"Open element" is the closest I know, as it lets you start typing and glob up classes, method names, variable names, etc. as requested.

The shortcut is Ctrl+Shift+T

ricab
  • 2,697
  • 4
  • 23
  • 28
  • CTRL+SHIFT+T pops up "Open type" for me. Do you mean CTRL-O / CTRL-F3 aka "Quick outline"? – zb226 Sep 09 '21 at 13:56
  • I haven't used eclipse in a while, so it may have changed, but searching for "eclipse open element" I found [a](https://www.badprog.com/eclipse-tips-n-tricks-open-element) [few](https://www.eclipse.org/forums/index.php/t/64795/) [places](https://stackoverflow.com/questions/1266862/most-useful-shortcut-in-eclipse-cdt) mentioning Ctrl+Shift+T. FWIW, I used Eclipse CDT mostly (not sure if it makes a difference). – ricab Sep 09 '21 at 14:12