[eclipse] Open type (Ctrl-Shift-T)找不到类
2013-09-04 11:46
381 查看
转自:《http://www.eoeandroid.com/blog-91715-5053.html》
有时(我极少遇到),通过ctrl + shift + t找对应的类时,类明明存在,并且也在编译路径下,但就是查找不到,一个可能的原因就是eclipse为类建立的索引出了问题。
解决的方法是:找到项目所在工作空间下的.metadata/.plugins/org.eclipse.jdt.core文件夹,将里面的*.index文件和savedIndexNames.txt文件删除,重启eclipse,然后eclipse会重建索引,这时问题就可以解决了。
解决方法来自这里: http://www.java-forums.org/eclipse/6513-open-type-ctrl-shift-t-does-not-find-types.html
Sometimes, the indexes that Eclipse use for searching the types, get corrupted. You can clear the Open Type indexes by going to <Workspace>/.metadata/.plugins/org.eclipse.jdt.core and deleting
all files there. The indexes will be re-built the next time you use open type.
Note that this is a empirical observation, and you may delete some JDT saved data that you don't want to delete. I observed no ill effects, but for safety you could try deleting just the *.index
files and the "savedIndexNames.txt", and see if it works.
有时(我极少遇到),通过ctrl + shift + t找对应的类时,类明明存在,并且也在编译路径下,但就是查找不到,一个可能的原因就是eclipse为类建立的索引出了问题。
解决的方法是:找到项目所在工作空间下的.metadata/.plugins/org.eclipse.jdt.core文件夹,将里面的*.index文件和savedIndexNames.txt文件删除,重启eclipse,然后eclipse会重建索引,这时问题就可以解决了。
解决方法来自这里: http://www.java-forums.org/eclipse/6513-open-type-ctrl-shift-t-does-not-find-types.html
Sometimes, the indexes that Eclipse use for searching the types, get corrupted. You can clear the Open Type indexes by going to <Workspace>/.metadata/.plugins/org.eclipse.jdt.core and deleting
all files there. The indexes will be re-built the next time you use open type.
Note that this is a empirical observation, and you may delete some JDT saved data that you don't want to delete. I observed no ill effects, but for safety you could try deleting just the *.index
files and the "savedIndexNames.txt", and see if it works.
相关文章推荐
- [eclipse] Open type (Ctrl-Shift-T)找不到类
- [eclipse] Open type (Ctrl-Shift-T)找不到类
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse快捷键大全,导包快捷键:ctrl+Shift+/
- eclipse Ctrl +左键查看源代码提示找不到源码
- 【Eclipse】Ctrl+Shift+L 快捷键
- Eclipse中ctrl+shift+r与ctrl+shift+t的区别[转]
- eclipse ctrl shift / 折叠代码失效
- eclipse 中 按 ctrl+shift+f 格式化代码时,每行容纳的字符数
- 找不到eclipse的open type
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- eclipse Open Resource 快捷键(Ctrl+Shift+R)与飞秋 打开快捷方式冲突
- vs2008实现eclipse Ctrl+Shift+R功能,即打开资源文件快捷键
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- 在MyEclipse、Eclipse中更改Ctrl+Shift+f格式化代码格式
- Eclipse代码格式化、规整化、自定义代码风格 Ctrl + shift + f