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 开发者_JAVA百科if there is such thing in eclipse?
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.
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).
Eclipse allows you to search the project. That's probably the closest to what you're looking for.
You can look at: Navigate > Open From Clipboard. Shortcut assigned in Neon for this: Ctrl+Shift+V.
"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
精彩评论