Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

eclipse

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?

like image 997
michael Avatar asked Sep 26 '22 01:09

michael


People also ask

How do I change the font size in Project Explorer in Eclipse?

Go to Preferences > General > Appearance > Colors and Fonts, expand the "Basic" folder and select "Text Font" and change that to whatever size you like.

How do I resize text in eclipse?

Preferences, General, Appearance, Colors and Fonts, Basic, Text Font. Click "Edit..." button. Change Size to 16. Click "OK" button.


3 Answers

In 2010, there was 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
like image 102
Dan Halbert Avatar answered Oct 25 '22 18:10

Dan Halbert


Does your Eclipse .ini file contain a reference to 'smallFonts?' On Mac you might see something like...

-Dorg.eclipse.swt.internal.carbon.smallFonts

If you remove this line, you'll see the font size in various views fatten up.

like image 60
Rick Winscot Avatar answered Oct 25 '22 18:10

Rick Winscot


On Windows 7, you can affect many of the Eclipse GUI fonts, including the Project Explorer by going to:

Control Panel → PersonalizationWindow Color and AppearanceAdvanced Appearance Settings

Change the font size for "Message Box".

Of course this messes with the appearance of other stuff in your OS, but I've found that tolerable compared to squinting at the project explorer...

like image 25
Nathan Monteleone Avatar answered Oct 25 '22 18:10

Nathan Monteleone