如何在Eclipse中显示当前函数 [英] How to Display Current Function in Eclipse

查看:189
本文介绍了如何在Eclipse中显示当前函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错过了Eclipse中的某些功能。我想知道当前光标所在的函数的名称。例如,当使用搜索功能浏览未知代码时,这很有用。



任何想法如何显示?可能是插件?

解决方案

我使用工具栏中的切换面包屑选项:





它显示了一个很好的面包屑,以当前的函数名称结尾。



对我来说非常方便,因为如果你有函数的功能,大概会变得很麻烦。 >

它在Java编辑器上面生成以下结构(在下图中截断):




I miss a certain functionality in Eclipse. I would like to know the name of the current function the cursor is currently inside. This is useful when browsing unknown code using the search function, for example.

Any idea how to show it? Maybe a plugin?

解决方案

I'm using the "Toggle Breadcrumb" option from toolbar:

It shows a nice breadcrumb, ending with current function name.

It's quite handy for me, as Outline becomes cumbersome to use if you have zilions of functions.

It produces the following structure above your Java Editor (truncated at the picture below):

这篇关于如何在Eclipse中显示当前函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆