Intellij“转到符号” eclipse 中的快捷方式?

发布于 2024-09-29 14:33:29 字数 138 浏览 10 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

人疚 2024-10-06 14:33:29

常规

对于类型名称,您可以使用 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.

番薯 2024-10-06 14:33:29

这可能只是 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).

川水往事 2024-10-06 14:33:29

Eclipse 允许您搜索项目。这可能是最接近您正在寻找的内容。

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

伏妖词 2024-10-06 14:33:29

您可以查看:导航>从剪贴板打开。
Neon 中为此分配的快捷键:Ctrl+Shift+V。

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

怀念你的温柔 2024-10-06 14:33:29

“开放元素”是我所知道的最接近的,因为它可以让您开始输入并组合类、方法名称、变量名称等。按要求。

快捷键是 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文