如何在Eclipse中的包资源管理器中配置树项目的字体大小? [英] How can I configure the font size for the tree item in the package explorer in Eclipse?

查看:117
本文介绍了如何在Eclipse中的包资源管理器中配置树项目的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置Eclipse中的包资源管理器/大纲中的树项目的字体大小?



首选项下的字体中的哪个项目>我应该更改?

解决方案

Eclipse中没有办法更改用于Package Explorer和其他此类视图的字体。您只能更改编辑器视图的字体。这是Eclipse开发人员的一项政策决定(参见例如, 49548 202091 )。 (Grumble。)使用的字体是您正在使用的任何桌面的一般外观设置。



在Linux上可以覆盖系统调用Eclipse时的字体。对各种可能性的一个很好的写作是 here ,我欠这个答案。我会在那里重复一个建议,提供后代。创建一个名为gtkrc-eclipse的文件:

  styleeclipse{
font_name =Sans Condensed 8
}
classGtkWidget样式eclipse

然后设置调用eclipse时某些环境变量:

  $ GTK2_RC_FILES = gtkrc-eclipse eclipse 
/ pre>

How can I configure the font size for the tree item in the package explorer/outline in Eclipse?

Which item in Font under Preferences I should change?

解决方案

There is no way in Eclipse to change the font used for Package Explorer and other such views. You can only change the font for editor views. This is a policy decision on the part of the Eclipse developers (see, e.g., bugs 49548, 202091). (Grumble.) The font used is the one set by the general look-and-feel for whatever desktop you are using.

On Linux it is possible to override the system font when you invoke Eclipse. An excellent writeup of various possibilities is here, to which I owe this answer. I'll repeat one suggestion from there for posterity. Create a file named, say, gtkrc-eclipse:

style "eclipse" {
  font_name = "Sans Condensed 8"
}
class "GtkWidget" style "eclipse"

Then set a certain environment variable when invoking eclipse:

$ GTK2_RC_FILES=gtkrc-eclipse eclipse

这篇关于如何在Eclipse中的包资源管理器中配置树项目的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆