eclipse中project explorer中的字体太小,长时间盯着看着实有点累,怎么办了,得想办法把字体设置的大一点。
之前使用luna版本的eclipse时,只要找到eclipse下的org.eclipse.ui.themes目录就可以了,但是新版本下的eclipse的plugins目录居然是空的,这是由于neon版本使用了installer。
后来查到eclipse.ini文件中有这样的配置:
--launcher.library
~/.p2/pool/plugins/
这下就明白了,现在的eclipse将plugin安装到了此目录下。先进入
~/.p2/pool/plugins/org.eclipse.ui.themes_1.1.100.v20160411-1921/css,在e4_default_mac.css的结尾添加
#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree,
#org-eclipse-ui-views-ContentOutline Tree,
#PerspectiveSwitcher ToolBar {
font-size: 17px;
}
然后保存文件,重启eclipse,万事大吉了。