[英]Eclipse shortcut to find function name
I have certain methods/functions in a class which are fairly very large, 3-4k lines. 我在类中有一些非常大的方法/函数,3-4k行。 (Poor design, dont ask) which makes navigation very difficult.
(糟糕的设计,不要问)导致导航非常困难。
Is there a certain shortcut in eclipse, such that, if i am at a certain line of code, using the shortcut will take me directly to the beginning of the function or atleast give me the name of the function. 在eclipse中是否有某个快捷方式,这样,如果我在某一行代码中,使用快捷方式会直接将我带到函数的开头或至少给我函数的名称。
Ctrl+o might be what you are looking for. Ctrl + o可能就是你要找的东西。
It will list out all the methods under the class file. 它将列出类文件下的所有方法。
You just take a look at all other shorcut keys available here http://www.shortcutworld.com/en/win/Eclipse.html . 您只需查看http://www.shortcutworld.com/en/win/Eclipse.html上提供的所有其他shorcut键。
Hope it helps. 希望能帮助到你。
You can use Outline view. 您可以使用“ 大纲”视图。 If you have your cursor within a method, the appropriate method will be selected in the view and double-clicking on the selected method will take you to the top of the method.
如果将光标放在方法中,将在视图中选择适当的方法, 双击所选方法将使您到达方法的顶部。
Screenshot coming up. 截图即将发布。
Edit: 编辑:
CTRL + O显示类中可用的所有成员变量或方法
You can use CTRL + O which gives a list of methods in the popup. 您可以使用CTRL + O ,它会在弹出窗口中提供方法列表。
That gives Outline of current source 这给出了当前来源的概要
It lists all the methods in the File.
它列出了
File.
中的所有方法File.
I would suggest you to use Bread crumb
available in Eclipse. 我建议你使用Eclipse中提供的
Bread crumb
。 You can enable it using Alt + Shift + B . 您可以使用Alt + Shift + B启用它。
You can have quick access to packages, classes and methods. 您可以快速访问包,类和方法。
Check here http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-java-editor-breadcrumb.htm 点击这里http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-java-editor-breadcrumb.htm
Ctrl + Shift + (Arrow Up) takes you to the beginning of a function. Ctrl + Shift +(向上箭头)将您带到函数的开头。 (At least in my configuration).
(至少在我的配置中)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.