简体   繁体   English

如何在Eclipse中拼写错误的方法名称后返回自动完成?

[英]How to get back auto-completion after misspelling a method name in Eclipse?

When I am coding Java in Eclipse I like the auto-completion feature. 当我在Eclipse中编写Java时,我喜欢自动完成功能。 With that I mean the popup with method-names that comes when you start typing in a method name for an object. 我指的是当您开始键入对象的方法名称时带有方法名称的弹出窗口。 Or maybe it's called something different, ie method-suggestions? 或者它可能被称为不同的东西,即方法建议?

But the popup is hidden if I misspells a method name, and it doesn't come back if I delete the misspelled part of the method name. 但是如果我拼错一个方法名称,弹出窗口就会隐藏,如果删除方法名称的拼写错误部分,它就不会返回。 Is there any way to get back the popup after a misspelling without starting to type in the hole method name again? 在没有开始再次输入孔方法名称的情况下,有没有办法在拼写错误后取回弹出窗口?

Press Ctrl + Ctrl + (Blank). (空白)。 For a complete list of keyboard shortcuts have a look in the eclipse "Preferences" and there "General/Keys". 有关键盘快捷键的完整列表,请查看日食“首选项”和“常规/键”。

You should also check out Preferences->Java->Editor->Content Assist. 您还应该查看Preferences-> Java-> Editor-> Content Assist。 You'll be able to select how it acts; 你将能够选择它的行为方式; things like if you use it in the middle of a word should it insert or overwrite, should it show deprecated methods, the delay before it automatically appears, and it can even (try to) guess your method parameters based on the variables in the current scope. 如果你在一个单词的中间使用它应该插入或覆盖,如果它显示弃用的方法,它自动出现之前的延迟,它甚至可以(尝试)根据当前的变量猜测你的方法参数范围。

I think you're after the Ctrl-Space keyboard shortcut. 你是在使用Ctrl-Space键盘快捷键。

(In Eclipse this is called Content Assist. In Visual Studio it's called IntelliSense.) (在Eclipse中,这称为内容辅助。在Visual Studio中,它称为IntelliSense。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM