简体   繁体   English

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

[英]Intellij 'Go to symbol' shortcut in eclipse?

There is a shortcut in IntelliJ I'm looking equivalent in Eclipse, it is called 'Go to symbol'. IntelliJ中有一个快捷方式,我在Eclipse中看起来相当,它被称为“转到符号”。 CTRL-ALT-SHIFT-N lets you start typing and glob up classes, method names, variable names, etc, from the entire project. CTRL-ALT-SHIFT-N允许您从整个项目开始键入和全局类,方法名,变量名等。

Does someone know 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). 对于类型名称,您可以使用control-shift-t(打开类型)并输入带有globs的部分名称或驼峰式名称中的大写字母(如DefaultTableModel的DTM)。

For resources (non java files like xml, properties, etc), you can use control - shift - r 对于资源(非java文件,如xml,属性等),您可以使用control - shift -r

For method and variable names, you'd need to use the Java Search function (the flashlight icon on the toolbar). 对于方法和变量名称,您需要使用Java搜索功能(工具栏上的手电筒图标)。

In the Java editor 在Java编辑器中

If you're looking for references to a symbol in the editor, click on it and press control - shift - g . 如果您要在编辑器中查找对符号的引用,请单击它并按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 . 如果要在编辑器中查找符号的定义,请按住Control键单击或单击它,然后按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将会发挥作用(我意识到这是你特定问题的一个变体,但无论如何都是有用的和类似的)。

You can look at: Navigate > Open From Clipboard. 您可以查看:导航>从剪贴板打开。 Shortcut assigned in Neon for this: Ctrl+Shift+V. 在Neon中为此分配的快捷方式:Ctrl + Shift + V.

Eclipse allows you to search the project. Eclipse允许您搜索项目。 That's probably the closest to what you're looking for. 这可能是你最接近你想要的东西。

"Open element" is the closest I know, as it lets you start typing and glob up classes, method names, variable names, etc . “Open element”是我所知道的最接近的,因为它允许你开始输入类型和全局类,方法名,变量名等 as requested. 按照要求。

The shortcut is Ctrl + Shift + T 快捷键是Ctrl + Shift + T.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM