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?

4

5 回答 5

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.

于 2010-10-28T20:27:46.753 回答
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).

于 2011-10-12T17:12:19.050 回答
0

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

于 2010-10-28T19:39:27.333 回答
0

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

于 2016-08-30T14:07:42.147 回答
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

于 2017-11-08T20:52:22.983 回答