使 Eclipse 智能感知/自动建议自动用于本地作用域和成员变量/方法
有没有什么方法可以使自动建议下拉列表显示本地作用域变量和本地成员变量/方法,而无需按 ctrl+space?就像 Visual Studio 那样?在输入“object”后,它会自动出现在对象成员中。
我发现自己输入几个字母并立即按 ctrl+空格键,如果我可以看到列表来知道是否输入更多字母,或者点击向下键会是最快的,那么对我来说效率会更高。 ..
我在设置中找不到这个选项,所以想知道是否还有其他方法可以实现我所追求的目标。
谢谢, 萨姆.
Is there any way to make the auto-suggest drop down list appear for locally scoped variables and local member variables/methods without having to push ctrl+space? Like Visual Studio does? It appears automatically for members of objects after getting as far as typing 'object.'
I'm finding myself typing a couple of letters and hitting ctrl+space straight away when it would be far more efficient for me if I could see the list to know if typing more letters, or tapping the down key was going to be quickest...
I can't find this option in the settings so was wondering if there's some other way of achieving what I'm after.
Thanks,
Sam.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在激活触发框中输入任何您想要的字符(默认只是一个“.”):
You can put whatever characters you want in the activation trigger box (default is just a single "."):
转到窗口 ->偏好-> Java->编辑->内容辅助
“自动激活 -> Java 触发器自动激活:”然后提到您想要弹出的字符。那么好吧。
Go to Window -> Preference -> Java -> Editor -> Content assist
"Auto activation -> auto activation for trigger for Java:" then mentioned the character on which you want to get pop up. then ok.
从来不知道 Ctrl-O。你的意思是Ctrl-空格键吗?尝试一下。我认为这是 Eclipse 所提供的最接近 Intellisense 的功能,也是最有用的快捷方式。
Never knew about Ctrl-O. Do you mean Ctrl-Space? Try it. I think this is the closest to Intellisense Eclipse has to offer and the most useful shortcut there is.