Eclipse - changing font size in project/package ex

2020-05-18 11:18发布

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.

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 this question.

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

6条回答
贼婆χ
2楼-- · 2020-05-18 11:33

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.

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

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.

查看更多
家丑人穷心不美
3楼-- · 2020-05-18 11:34

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

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

查看更多
淡お忘
4楼-- · 2020-05-18 11:36

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

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

查看更多
走好不送
5楼-- · 2020-05-18 11:45

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

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

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

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

查看更多
冷血范
6楼-- · 2020-05-18 11:52

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

查看更多
可以哭但决不认输i
7楼-- · 2020-05-18 11:58

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.

查看更多
登录 后发表回答