如何更改 Ubuntu 上 Eclipse Juno 上 Package Explorer View 内 TreeView 的字体大小?
最佳答案
在 Juno 及更高版本上,您可以通过 CSS 调整该字体。
在 eclipse/plugins/org.eclipse.platform_4.2.x.vy/css
中查找当前样式表的文件(可能是 e4_default_gtk.css
),然后只需添加以下规则:
#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree {
font-size: 10px; /* <-- Desired font size */
}
专业提示:下次您需要查找 UI 部分的 CSS Id 时,请使用 CSS Spy,您可以使用 SHIFT-ALT 打开它-F5(安装后)。
关于eclipse - ubuntu 中树形 View Eclipse 的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14869360/