在Eclipse中显示所有本地变量 [英] Show All Local Variables in Eclipse

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

问题描述

我想我已经知道这个问题的答案是不,但是我反问,以防万一我错过了dox的东西。



我喜欢Eclipse快速大纲功能,通过键入Control + O(或Navigate - >快速大纲),我可以轻松查看我的光标所在类的所有成员变量和方法。



同样有用的是在我的光标所在的位置查看所有可用的局部变量。这样的功能是否存在?



谢谢!

解决方案

可能使用内容协助。只需按一下空白的Ctrl + Space,所产生的内容协助弹出窗口即可提供有关可以插入的内容的建议,局部变量应在顶部,后跟字段,然后是成员函数。


I think I already know the answer to this question is "No", but I ask anyway just in case I missed something in the dox.

I adore the Eclipse "Quick Outline" feature where I can easily see all the member variables and methods for the class my cursor is currently located in by typing Control + O (or Navigate -> Quick Outline).

What would be equally useful is a way to see all local variables available at the point my cursor is. Does such a feature exist?

Thanks!

解决方案

You can probably use content assist for this. Just press Ctrl+Space on an empty line, the resulting content assist popup should offer suggestions on what can be inserted at that point, local variables should be on top followed by fields and then member functions.

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

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