本文翻译自:Eclipse/Java code completion not working

I've downloaded, unzipped and setup Eclipse 3.4.2 with some plugins (noteable, EPIC, Clearcase, QuantumDB, MisterQ). 我已经下载,解压缩并使用一些插件(可记录,EPIC,Clearcase,QuantumDB,MisterQ)设置Eclipse 3.4.2。

Now I find when I'm editing Java projects the code completion is not working. 现在我发现当我编辑Java项目时,代码完成无法正常工作。 If I type String. 如果我键入String. and press ctrl + space a popup shows "No Default Proposals" and the status bar at the bottom shows "No completions available". 然后按ctrl + space弹出窗口显示“No Default Proposals”,底部的状态栏显示“No completions available”。

Any ideas? 有任何想法吗?


#1楼

参考:https://stackoom.com/question/3oL3/Eclipse-Java代码完成无法正常工作


#2楼

I'm adding an answer here in case someone else finds this on Google. 我在这里添加了一个答案,以防其他人在Google上发现这个问题。 Same symptoms; 相同的症状; different problem. 不同的问题。 For me, the type caches had become corrupt. 对我来说,类型缓存已经腐败。

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

  • Quit Eclipse 退出Eclipse
  • Go to workspace/.metadata/.plugins/org.eclipse.jdt.core 转到workspace / .metadata / .plugins / org.eclipse.jdt.core
  • Remove *.index and savedIndexNames.txt 删除* .index和savedIndexNames.txt
  • Restart Eclipse and search Ctrl+T for the offending type. 重新启动Eclipse并搜索Ctrl + T以获取有问题的类型。 The indexes will be rebuilt. 索引将被重建。

#3楼

For those running Xfce + having IBus plugin activated, there might be keyboard shortcut conflict. 对于那些运行Xfce +并激活IBus插件的人来说,可能存在键盘快捷键冲突。

See more info on my blog: http://peter-butkovic.blogspot.de/2013/05/keyboard-shortcut-ctrlspace-caught-in.html 在我的博客上查看更多信息: http : //peter-butkovic.blogspot.de/2013/05/keyboard-shortcut-ctrlspace-caught-in.html

UPDATE : 更新

as suggested by @nhahtdh's comment, adding the some more info to answer directly: IBus plugin in Xfce uses by default Ctrl + Space shortcut for keyboard layout switching. 根据@ nhahtdh的评论建议,添加更多信息直接回答:Xfce中的IBus插件默认使用Ctrl + Space快捷键进行键盘布局切换。 To change it, go to: Options and change it to whatever else you prefer. 要更改它,请转到:选项并将其更改为您喜欢的任何其他内容。


#4楼

I faced this problem, and spent hours trying to figure out the issue. 我遇到了这个问题,花了好几个小时试图找出问题所在。 tried to follow the steps mentioned in the different answers above, the solution I found is on the same lines as Mona suggested, but slightly different. 试图按照上面不同答案中提到的步骤,我找到的解决方案与Mona建议的解决方案相同,但略有不同。 Tried to add as a comment to Mona's answer but no option was available. 试图在Mona的答案中添加评论,但没有选项可用。 Issue with my eclipse was, classpath somehow got corrupted and all the jars and dependent projects were missing. 我的日食问题是,类路径以某种方式被破坏,所有的罐子和依赖项目都丢失了。 after taking the latest .classpath from repository it worked fine. 从存储库中获取最新的.classpath后,它工作正常。


#5楼

None of these worked for me. 这些都不适合我。

I was experiencing this issue in only once particular class. 我只在一次特定课程中遇到过这个问题。 What finally worked for me was to delete the offending class and recreate it. 最终对我有用的是删除有问题的类并重新创建它。 Problem solved... mystery not so much! 问题解决了......神秘不是那么多!


#6楼

I had this problem and like @Marc, only on a particular class. 我遇到了这个问题,就像@Marc一样,只针对特定的类。 I discovered that I needed to designate Open With = Java Editor. 我发现我需要指定Open With = Java Editor。 As a Eclipse newbie I hadn't even realized that I was just using a plain editor. 作为一个Eclipse新手,我甚至没有意识到我只是使用普通的编辑器。

In the package explorer, right-click the file and chose "Open With". 在包资源管理器中,右键单击该文件并选择“打开方式”。

Eclipse / Java代码完成无法正常工作相关推荐

  1. eclipse java代码乱码怎么解决_eclipse java 乱码怎么解决

    eclipse项目代码显示中文乱码 解决方法有4种: 1.设置工作空间的编码方式 进行点击菜单中的windows菜单 选择下拉菜单中进行选择为Preferences选项. 进入general的选项,选 ...

  2. eclipse java代码某一行需要修改注释_看看这些Java代码开发规范吧!你好,我好,大家好!...

    作为一名开发人员,当你接手他人的项目时,且当你阅读他人的代码时,是有没有遇到脑袋充血,感觉Java要把你"送走"的感觉呢?我们在用Java开发技术进行开发前,一定要牢牢恪守Java ...

  3. eclipse java代码颜色设置颜色设置颜色设置颜色设置颜色_eclipse设置(颜色,字体等)...

    1.设置jsp中js块的颜色: 选择Preferences菜单项.在弹出的窗口的左侧树形菜单依次选择:MyEclipse.Files and Editors.Javascript.Editor.Syn ...

  4. 普元EOS流程开发,java代码指定人员完成工作项

    懒得打字,直接上代码~ /** * 完成工作项 * @param workitemId 工作项ID */@param userId 完成工作项id,该参数根据实际情况传入,为用户的唯一标识符: @Bi ...

  5. root权限执行java_执行具有root权限的java代码(一)

    我们知道,当手机被root后,就可以通过su来执行具有root权限的代码了,但这基本只局限在了shell里面的命令. 比如我们可以执行 am.pm以及android支持的一些linux命令. 一但我们 ...

  6. 编写高效的java代码

    供稿人:肖华飚 概述 随着Java的广泛应用,越来越多的关键企业系统也使用Java构建.作为Java核心运行环境的Java虚拟机JVM被广泛地部署在各种系统平台上.对Java应用的性能优化也越来越受到 ...

  7. 在 Eclipse Galileo 中更快地编写 Java 代码使用新的 toString() 生成器

    http://www.ibm.com/developerworks/cn/opensource/os-eclipse-codegen/ 这个代码生成技巧使用 Eclipse Galileo 中的新特性 ...

  8. Eclipse 答疑:Eclipse 如何设置 Java 代码自动提示和自动补全?

    文章目录 前言 一.打开 Eclipse 进入配置页面 二.进入 Java 的设置 三.输入补全信息 四.应用检查 总结 前言 在课堂上或者是开发大佬面前,你也许总是能够看到大佬们只要在敲代码时啪啪啪 ...

  9. SpringCloud工作笔记076--- CheckStyle插件提高java代码质量

    技术交流QQ群[JAVA,.NET,BigData,AI]:170933152 这个是eclipse中的,在idea中也有这个插件,需要的时候去看看装上吧. 国外的客户一般比较严谨,这些工作,甚至自己 ...

最新文章

  1. c# imager让图片有圆角unity_C# 10分钟完成百度图片提取文字(文字识别)——入门篇...
  2. sublime配置全攻略
  3. linux电脑系统投到电视,教你如何在Linux操作系统下观看电视节目
  4. 利用记录型信号量机制: wait(s), signal(s)解决进程同步问题
  5. XSD(Schema)教程
  6. kill apache
  7. Python 爬取张国荣最火的 8 首歌,60000 评论看完泪奔!
  8. NSIS制作安装包实例
  9. Nginx的内部(进程)模型
  10. Atitit java文件监控 WatchService 的使用 目录 1. // 处理下级多层目录 1 2. // 处理新目录 1 3. Code 2 常见问题对于 1.// 处理下级多层目
  11. 江苏省计算机等级考试注意事项,江苏省淮安市2020上半年计算机等级考试注意事项...
  12. python源代码编译后的文件扩展名-python源代码被解释器转换后的格式是什么?
  13. linux 360云盘下载文件夹里,360安全云盘Linux版图文使用说明
  14. maven:mirrors和repository的关系区别
  15. C++实现空间中两个三角形位置关系(相交、平行)的判断
  16. 博途TIA Portal V15 下载与安装教程
  17. C语言入门习题系列二(含答案)
  18. 公司用户画像项目总结
  19. 18个接私活的平台:
  20. Cannot parse date “2020-08-31 00:00:00“: while it seems to fit format ‘yyyy-MM-dd‘T‘HH:mm:ss.SSS

热门文章

  1. 【SSO单点系列】(6):CAS4.0 单点流程序列图(中文版)以及相关术语解释(TGT、ST、PGT、PT、PGTIOU)...
  2. 【育儿日记2】兔子不要上幼儿园
  3. 解决由于一个软件限制策略的阻止,windows无法运行此程序cmd.reg
  4. 10条有用的可用性结论和指南
  5. 再提手机上网应该包月计费
  6. 【转】删除数据库中重复数据的几个方法
  7. 为啥选择python
  8. 使用Xcode7的Instruments检测解决iOS内存泄露
  9. RHEL7 -- 使用Chrony设置时间与时钟服务器同步
  10. Ubuntu 20.04 上搭建 LEMP/LAMP 环境运行 WordPress