简体   繁体   English

Eclipse Juno 中没有默认提案

[英]No Default Proposals in Eclipse Juno

我最近切换到 Eclipse Juno 进行 android 开发。当我按“ctrl+space”查看可用提案时。但它显示“无默认提案”。

I have the same problem; 我也有同样的问题; it occurred after I upgraded to Juno. 它升级到Juno后发生了。

My fix: - Window->Preferences->Java->Editor->Content Assist->Advanced - explicitly check Java Proposals - Apply 我的修复: - Window-> Preferences-> Java-> Editor-> Content Assist-> Advanced - 显式检查Java Proposals - Apply

That fixed it for me. 这为我解决了这个问题。 (I don't know why Restore Defaults does not set this, seems like it should but it didn't work for me) (我不知道为什么Restore Defaults没有设置这个,好像它应该但它对我不起作用)

Try restoring the Restore Default options in 尝试恢复“ Restore Default选项

Windows > Preferences > Java > Editor > Content Assist > Advanced > Restore Default

See image clearly at below. 请在下面清楚地看到图像。

Eclipse图像

For more, have a look on 有关更多信息,请查看

  1. Eclipse/Java code completion not working . Eclipse / Java代码完成无法正常工作
  2. Content Assist (Ctrl + Space) Is Not Working – Eclipse 内容辅助(Ctrl + Space)不起作用 - Eclipse

Hope it helps you.!! 希望它能帮助你。!!

Simply do a Project> Clean and then restart Eclipse. 只需执行一个Project> Clean,然后重启Eclipse。 I had the same issue 我遇到过同样的问题

Change workspace and try it now. 更改工作区并立即尝试。 It works fine for me. 这对我来说可以。

确保你在java透视图中并且你的项目可能被重新调整为Android项目

We can change the settings as per our requirement.我们可以根据需要更改设置。

Suppose we want to make java proposal as highest priority we need to do changes as shown below.假设我们希望将java 提案作为最高优先级,我们需要进行如下更改。

Windows > Preferences > Java > Editor > Content Assist > Advanced Windows >首选项> Java >编辑器>内容辅助>高级

Choose java proposal and click on up button选择java 提议并单击向上按钮在此处输入图片说明

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

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