简体   繁体   English

如何在Eclipse中获取自动完成的内容?

[英]How can I get auto-complete content in eclipse?

Is there any option that I can use to type faster without spelling mistakes? 我可以使用任何选项来快速键入而不会出现拼写错误吗? I have already searched menus of eclipse but couldn't find. 我已经搜索了eclipse菜单,但找不到。

ctrl-space键触发自动完成

CTRL + Space will show you a list of proposals. CTRL +空格将显示建议列表。

If this is not enough, you can go to Window > Preferences > Java > Editor > Content Assist. 如果这还不够,您可以转到窗口>首选项> Java>编辑器> Content Assist。 You'll be able to play around with the settings there. 您将可以在那里进行设置。

Type few alphabets eg st and then press Ctrl+space together it will show options which start with st : 输入几个字母,例如st ,然后同时按Ctrl+space ,它将显示以st开头的选项:

在此处输入图片说明

Then select one which you need, this way you can type faster and without making any syntactically incorrect name. 然后选择一个您需要的名称,这样您就可以更快地键入内容,而不会产生任何语法错误的名称。 Though it does not guarantee spelling mistake as such. 尽管它不能保证这样的拼写错误。 I prefer IntelliJ over Eclipse. 我更喜欢IntelliJ,而不是Eclipse。

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

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