目录
2. Eclipse的换了DARK主题后,有的按钮和选中代码字段看不清是否选中,怎么办?
1.Eclipse修改字体大小
2. Eclipse的换了DARK主题后,有的按钮和选中代码字段看不清是否选中,怎么办?
用了Dark主题后,感觉很不错,但是也有几个遗憾:(选主题:windows->preference->general->theme)
一是#Ifdef 如果是无效部分背景与前景很接近,完全看不见内容。
在以下修改:windows->preference->C/C++->editor->inactive code highlight.
二是光标所在关键词的着色很清楚。
在以下修改:windows->preference->editor->text editor->annotations->c/c++ occurrences。
总之,功能很强大,找到实在不易。
3.Eclipse F3 无法打开定义和申明
错误: an internal error occurred during open declaration . java.lang.nullpointerexception
解决方法:
1. eclipse 菜单-Window - Preferences - Indexer - Cache limits 增加比例和absolute limit
2. 鼠标右键工程 - index - rebuild
3. 删除该目录下的工程,重新导入 workspace/.metadata/.plugins/org.eclipse.core.resources/.projects
Eclipse首次编辑大于5000行(默认)代码以上的文件时,会提示为了提高性能,已进入Scalabilitys模式,将关闭代码定义跳转功能以提高性能。解决Eclipse中编辑大文件进入scalability模式无法按Ctrl或者F3跳转的问题:
Window -> Preference-> C/C++ -> Editor -> Scalability
Window -> Preference-> C/C++ -> Indexer
最后,重新启动Eclipse,就大功告成了。
4.导出导入eclipse的所有设置
导出
File-->export-->General-->Preferences-->勾选ExportAll-->选择你要保存To preferences file (.epf)文件的位置-->finish
导入
File-->import-->General-->Preferences-->勾选ImportAll-->选择你要导入的.epf文件-->finish
5.Eclipse国内镜像源配置方法
把 http://download.eclipse.org/ 替换为 http://mirrors.ustc.edu.cn/eclipse 。