Eclipse火星不保存偏好 [英] Eclipse Mars is not saving preferences

查看:89
本文介绍了Eclipse火星不保存偏好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ctrl +空格不显示提案。例如sysout或arr。不管用。我尝试从Content Assist-> Advanced恢复默认值。

Ctrl+Space is not showing proposals. e.g sysout or arr. is not working. I tried to restore default from Content Assist-> Advanced.

但是,我所做的更改不会被保存,并在首选项中恢复为原始设置。以前有人遇到过吗?任何帮助将不胜感激。

But, the changes which I make does not get saved and it reverts back to the original settings in preferences. Has anyone encountered this before? Any help will be much appreciated.

推荐答案

这在eclipse中实际上是常见的。

This is actually kind of common in eclipse.

虽然这个链接没有描述你所说明的确切症状,但它提出的解决方案可能能够解决你的问题:

Although this link doesn't describe the exact symptoms you have stated, the solution it proposes may be able to solve your issue:

http://mschrag.blogspot.co.nz/ 2009/01 / open-type-cant-find-your-class.html



  • 退出Eclipse

  • 转到workspace / .metadata / .plugins / org.eclipse.jdt.core

  • 删除* .index和savedIndexNames.txt

  • 重新启动Eclipse并搜索Ctrl + T作为违规类型。索引将被重建。

  • Quit Eclipse
  • Go to workspace/.metadata/.plugins/org.eclipse.jdt.core
  • Remove *.index and savedIndexNames.txt
  • Restart Eclipse and search Ctrl+T for the offending type. The indexes will be rebuilt.

尝试这样做。如果它仍然不起作用,尝试删除该类本身,然后重新创建。只需复制并粘贴。再次,您提到了默认首选项:

Try doing that. If it still doesn't work, try to delete the class itself, and re make it. Just copy and paste. Again, you mentioned the default preferences:

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

Eclipse帮助页面告诉恢复:


选择默认内容辅助列表中包含的提案类型:


  • 其他Java提案

  • SWT模板提案

  • 模板提案,

  • 类型提案

  • Other Java Proposals,
  • SWT Template Proposals,
  • Template Proposals,
  • Type Proposals

现在, :

Window > Preferences > Java > Appearance > Type Filters

并确保您没有过滤掉您不想要的随机内容过滤掉。还要尽量禁用所有的东西。

And make sure that you didn't filter out random stuff that you don't want to filter out. Also try to just disable everything there.

让我知道如果它有帮助!

Let me know if it helped!

这篇关于Eclipse火星不保存偏好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆