Intellij“转到符号” eclipse 中的快捷方式?
IntelliJ 中有一个快捷方式,我在 Eclipse 中寻找类似的快捷方式,它被称为“转到符号”。 CTRL-ALT-SHIFT-N 可让您开始在整个项目中键入并组合类、方法名称、变量名称等。
有人知道 eclipse 中是否有这样的东西吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
常规
对于类型名称,您可以使用 control-shift-t(开放类型)并使用通配符或驼峰式名称中的大写字母输入部分名称(如 DefaultTableModel 的 DTM)。
对于资源(非 java 文件,如 xml、属性等),您可以使用 control-shift-r
对于方法和变量名称,您可以 使用需要使用 Java 搜索功能(工具栏上的手电筒图标)。
在 Java 编辑器中
如果您要在编辑器中查找对某个符号的引用,请单击该符号并按 control-shift-g。
如果您要在编辑器中查找符号的定义,请按住 Control 键单击或单击它并按 F3。
如果您想在编辑器中查找符号的实现(例如可能被覆盖的接口或方法),请按其上的 control-t 。
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.
这可能只是 Flash Builder 的事情,但是如果您只是在您所在的类中查找,则 ctrl+o 就可以解决问题(我意识到这是您的具体问题的一个变体,但是无论如何都是有帮助和相似的)。
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 允许您搜索项目。这可能是最接近您正在寻找的内容。
Eclipse allows you to search the project. That's probably the closest to what you're looking for.
您可以查看:导航>从剪贴板打开。
Neon 中为此分配的快捷键:Ctrl+Shift+V。
You can look at: Navigate > Open From Clipboard.
Shortcut assigned in Neon for this: Ctrl+Shift+V.
“开放元素”是我所知道的最接近的,因为它可以让您开始输入并组合类、方法名称、变量名称等。按要求。
快捷键是 Ctrl+Shift+T
"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