Linux Eclipse - 在项目/包资源管理器中更改字体大小

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4466247/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 00:20:01  来源:igfitidea点击:

Eclipse - changing font size in project/package explorer

linuxeclipseconfiguration

提问by lisak

I'm using two environments, one with 24" screen, second one with 15". I need default font size of content of project/package explorer in the first one, but small font size for the other one.

我正在使用两种环境,一种是 24 英寸屏幕,另一种是 15 英寸。我需要第一个项目/包资源管理器内容的默认字体大小,但另一个需要小字体大小。

Is there any way how to change it within eclipse? I mean not within operating system ? Because it always influences other font size on desktop. I'm reffering to thisquestion.

有什么办法可以在日食中改变它吗?我的意思是不在操作系统内?因为它总是影响桌面上的其他字体大小。我指的是这个问题。

If there is no way, please describe how would you do it in Linux - distribution independently.

如果没有办法,请描述您将如何在 Linux 中进行 - 独立发行。

回答by Michael Wiles

I can say pretty confidently that you cannot change that font size from within eclipse, only choice is on the operating system. And on ubuntu you are able to change that font size.

我可以非常自信地说,你不能在 eclipse 中改变字体大小,唯一的选择是在操作系统上。在 ubuntu 上,您可以更改该字体大小。

回答by ams

I have a 17 inch Mac Book Pro which is frequently hooked up to 27 inch high res display and the font size in the package explorer was way too small. Eclipse is supposed to respect the OS settings but it turns out on Mac OS X the default setting for eclipse is to use small Fonts rather than the standard os fonts.

我有一台 17 英寸的 Mac Book Pro,它经常连接到 27 英寸的高分辨率显示器,并且包资源管理器中的字体太小了。Eclipse 应该尊重 OS 设置,但事实证明在 Mac OS X 上,eclipse 的默认设置是使用小字体而不是标准的 os 字体。

on Mac OS X you can change edit the eclipse.ini file and remove -Dorg.eclipse.swt.internal.carbon.smallFontsrestart eclipse and presto you will find that your package explorer looks brilliant with reasonable sized fonts.

在 Mac OS X 上,您可以更改编辑 eclipse.ini 文件并删除-Dorg.eclipse.swt.internal.carbon.smallFonts重新启动 eclipse 和 presto,您会发现您的包浏览器看起来很漂亮,字体大小合理。

You make have to use the Finder option "Show Contents" on the Eclipse.app to find the eclipse.ini file, and, the smallFonts line may occur more than once in the .ini file.

您必须使用 Eclipse.app 上的 Finder 选项“显示内容”来查找 eclipse.ini 文件,并且 smallFonts 行可能会在 .ini 文件中出现多次。

回答by Danny Sinang

For Mac OS X, download TinkerTool from http://bresink.de/osx/TinkerTool.htmland then change the font size for "Help tags".

对于 Mac OS X,从http://bresink.de/osx/TinkerTool.html下载 TinkerTool ,然后更改“帮助标签”的字体大小。

That changed the font size of package explorer for me. :)

这改变了我的包浏览器的字体大小。:)

回答by jelies

For linux: Check out this link, it was very useful to me! I'm using the author's favourite option and works seamlessly.

对于 linux:查看此链接,它对我非常有用!我正在使用作者最喜欢的选项并且可以无缝工作。

http://techtavern.wordpress.com/2008/09/24/smaller-font-sizes-for-eclipse-on-linux/

http://techtavern.wordpress.com/2008/09/24/smaller-font-sizes-for-eclipse-on-linux/

回答by Atul Dravid - White Pvt. Ltd.

I work in Android development. I have ADT installed which comes which eclipse. The Windows about states that the eclipse installed has following components.

我从事 Android 开发。我安装了 ADT,它来自哪个 eclipse。Windows about 指出安装的 eclipse 具有以下组件。

This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP,

and Version : 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 and BuildID : M20130204-1200

和版本:4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 和构建ID:M20130204-1200

With the above version, I am able to change the font within eclipse. The process to change the font is very simple

使用上述版本,我可以在 eclipse 中更改字体。更改字体的过程非常简单

1) Click on Window menu.
2) Click on Preferences sub menu.
3) Open General tab. (Left navigation)
4) Open Appearances sub tab. (Left navigation)
5) Click on Colors and Font option. (Left navigation)
6) Expand Basic option. (Right panel)
7) Click on Text Font (last option in Basic option)
8) Click on Edit Button.
9) Change the font which you want.

The screen shot of above option looks like...

上述选项的屏幕截图看起来像...

enter image description here

在此处输入图片说明

回答by user292701

For Eclipse Oxygen on Sierra, deleting -Dorg.eclipse.swt.internal.carbon.smallFonts from Eclipse.app ? Contents ? Eclipse ? eclipse.ini didn't change anything visible

对于 Sierra 上的 Eclipse Oxygen,从 Eclipse.app 中删除 -Dorg.eclipse.swt.internal.carbon.smallFonts ?内容 ?日蚀?eclipse.ini 没有改变任何可见的东西