在Eclipse中显示所有本地变量 [英] Show All Local Variables in Eclipse
问题描述
我喜欢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屋!