score:0

to change fonts in eclipse workspace with ubuntu, i modified system fonts desktop > system > preferences > appearance > fonts also modified eclipse indigo -> windows > preferences > general > appearances > colors and fonts. it reflected in eclipse.

score:0

in eclipse v4.2 (juno) you can modify the css by going to menu windowpreferencesgeneralappearances.

enter image description here

score:0

in windows 8,

  1. go to control panel -> appearance and personalization -> display
  2. in the middle of the screen there is a drop down under the heading change only the text size, select message bokes.
  3. change the font size in the adjacent drop down.

score:0

in eclipse v4.4 (luna) service release 2 (4.4.2) under windows 7:

if you select the "windows" theme (eclipse default configuration)

[window => preferences => general->appearance -> theme: windows]

you could add the following code snippet into below css file.
[eclipse root folder]\plugins\org.eclipse.ui.themes_x.x.x.vxxxxxxxx-xxxx\css\e4_default_win7.css

tree,
registryfilteredtree,
/* the following are required due to bug 419482 (see <1>): */
composite > tree,
tabfolder > composite > tree,
tabfolder > composite > * > tree,
doccommentownercomposite > group > tree,
tabfolder > composite > scrolledcomposite > tree,
shell > composite > composite > tree,
composite > composite > composite > group > tree,
shell > composite > composite > composite > tree,
scrolledcomposite > composite > composite > composite > tree,
shell > composite > composite > composite > composite > composite > tree,
shell[style~='swt.radio'][style~='swt.cascade'][style~='swt.shadow_etched_in'][style~='swt.shadow_etched_out'][style~='swt.resize'][style~='swt.menu'][style~='swt.full_selection'][style~='swt.date'] > composite > tree,
shell[style~='swt.radio'][style~='swt.cascade'][style~='swt.shadow_etched_in'][style~='swt.shadow_etched_out'][style~='swt.resize'][style~='swt.menu'][style~='swt.full_selection'][style~='swt.date'] > composite > * > tree {
    font-size: 13;
}

the value of font-size could be set as wish.

if you install other customized theme packages such as the eclipse moonrise ui theme from eclipse marketplace, there will be the jar file under [eclipse root folder]\plugins
(example: com.github.eclipseuitheme.themes.moonrise-ui_0.8.9.201404052318.jar)

modify below the css files in this jar file
\themes\css\moonrise-ui-standalone.css and moonrise-ui-standalone_win.css
there is similar code section in these css files starting with:

tree,
registryfilteredtree,

add the "font-size:13;" like the above code snippet and apply via the below steps.

menu windowpreferencesgeneralappearancetheme: moonrise (standalone)

score:0

i have two screens, a small and a large one. eclipse is using the size settings from the "main screen". in my case that was a small screen with a scaling of 150%.

switching the main screen to the large screen resolved the size issues for me.

score:0

in windows 10 environements it is not possible to change the text size of the package explorer within eclipse. he only thing you can do is to change the text size in the os settings.

go to settings (windows + i) then ease of access then display.

there you can change the text size in the "make text bigger" section. this applies directly to the package explorer in eclipse.

score:1

for mac users:

in file:

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css

find this code snippet:

shell[style~='swt.radio'][style~='swt.cascade'][style~='swt.shadow_etched_in']
[style~='swt.shadow_etched_out'][style~='swt.resize'][style~='swt.menu'][style~='swt.full_selection']
[style~='swt.date'] > composite > * > tree {

    background-color: #2f2f2f;
    color: #ccc;
}

modify it adding information about the font size:

shell[style~='swt.radio'][style~='swt.cascade'][style~='swt.shadow_etched_in']
[style~='swt.shadow_etched_out'][style~='swt.resize'][style~='swt.menu'][style~='swt.full_selection']
[style~='swt.date'] > composite > * > tree {

    background-color: #2f2f2f;
    color: #ccc;
    font-size: 13;
}

this example is for the dark theme in eclipse v4.4 (luna).

score:1

ubuntu, eclipse v4.4 (luna)*

  1. locate your: eclipse/plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css
  2. pick the css file that you are using per preferencesgeneralappearance inside the eclipse ui.
  3. backup the original and add something like the following, after first closing eclipse just for safety:

    .mpart tree { font-size: 14; }

*it was performed on scalaide version of eclipse v4.4 (luna) and should be the same for regular eclipse v4.4 (luna), i think.

score:1

on windows 10, if you got hit by the creators update:

the windows 10 creators update apparently removed the ability to "change only the text size" in "display settings". in addition the update reset my previous text size setting so that i ended up with small font size in the tree items of the package explorer.

a solution that worked for me is to use a small tool 'a+ system font size changer'. there, increasing the "message box" setting to 4 (a custom unit defined by the tool) and applying the setting changed the font size in the items of the package explorer.

the tool also allows you to increase the size of "menu", "title bar", "palette title", "icon" (which worked wonders on the display of folders in windows explorer), and "tooltip".

p.s.: i would have preferred to comment on the answer from hartmut, but my reputation score is too low.

update 2022-06-10: the tool also works with windows 11. the ui changed a bit (e.g. the size setting unit of measure is different now, a value of 12 on all settings worked for me).

score:1

in windows server,

go to control panel-->display section. display section if default setting is smaller like picture,you can change the size for your demand,also you can change only the specific text size by option

note: it is applied based on system setting ,not only for eclipse based platform.

score:2

the following solution works on mac os with eclipse v4.4 (luna).

choose mac appearance: menu windowpreferencesgeneralappearancestheme: mac.

add a copy of the following code snippet contained in

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css

to the end of the file

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/e4_default_mac.css.


tree,
registryfilteredtree,
/* the following are required due to bug 419482 (see <1>): */
composite > tree,
tabfolder > composite > tree,
tabfolder > composite > * > tree,
doccommentownercomposite > group > tree,
tabfolder > composite > scrolledcomposite > tree,
shell > composite > composite > tree,
composite > composite > composite > group > tree,
shell > composite > composite > composite > tree,
scrolledcomposite > composite > composite > composite > tree,
shell > composite > composite > composite > composite > composite > tree,
shell[style~='swt.radio'][style~='swt.cascade'][style~='swt.shadow_etched_in']
[style~='swt.shadow_etched_out'][style~='swt.resize'][style~='swt.menu']
[style~='swt.full_selection'][style~='swt.date'] > composite > tree, shell[style~='swt.radio']
[style~='swt.cascade'][style~='swt.shadow_etched_in'][style~='swt.shadow_etched_out']
[style~='swt.resize'][style~='swt.menu'][style~='swt.full_selection'][style~='swt.date'] > composite > * > tree {
    font-size: 13;
}

score:2

in windows 10,

at the left bottom corner click on the windows symbol, enter "display settings", then go to "advanced display settings", then go to "advanced sizing of text and other items", there you'll find "change only the text size":

you'll see a list of

  • title bars
  • menus
  • message boxes
  • palette titles
  • icons
  • tooltips

switch at least "message boxes" to font size e.g. 13 instead of 9 (for eclipse package explorer tree).

i would switch "menus" also to font size 13 (for eclipse main menu).

or all of them :-)

score:3

eclipse inherits the font size of the gui items, from the operating system. for a demo for example you might want to increase the font size of your os.

score:4

eclipse uses a system user interface font for project explorer, so you can change it with an os-specific method. note: eclipse will have to be restarted even if other apps respond immediately to the font change.

  • on linux (gnome), i was able to alter eclipse's font with gnome tweak tool (applications → utilities → tweak tool). if it's not already installed, try sudo yum install gnome-tweak-tool or sudo apt-get install gnome-tweak-tool. in the fonts page, change the interface font.
  • on windows 7, go to control panel → personalization → window color and appearance → advanced appearance settings → change the font size for "message box". (credit: nathan monteleone)
  • on mac, unpack the tinker tool, run it, go to the fonts tab and adjust the size of help tags (tested with eclipse 2018-12).

some other parts of eclipse will also be affected, such as the startup dialog.

score:6

as someone has already mentioned previously, modifying the "e4_basestyle.css" file worked for me on eclipse v4.3 (kepler) and windows 8.

also, i find that you must also change the text size/style under

preferencesteamgitlabeldecorations

or

preferencesappearancecolorsandfonts, under the git section.

to make sure that text size/colors for uncommitted files are in sync with your changes. this is of course if you initialise your project as a repository.

score:7

fyi:

from eclipse v4.4 (luna):

it looks like the css files are no longer in the old folder:

eclipse/plugins/org.eclipse.platform_4.x.x.vy/css

they are moved to the new folder:

 eclipse/plugins/org.eclipse.ui.themes_x.x.x.vxxxxx/css

and you must select a theme to apply it, in the menu

windowspreferencesgeneralappearance

score:7

eclipse v4.5 (mars) using the built-in dark theme on linux.

eclipse/plugins/org.eclipse.ui.themes_1.1.0.v20150511-0913/css/dark/e4-dark_globalstyle.css

around line 204, you can add your chosen font size:

background-color: #2f2f2f;
color: #ccc;
font-size: 8;

score:9

go into eclipse/plugins/org.eclipse.ui.themes_1.1.0.v{here_some_digits}\css.

here you see your installed theme css files. choose you theme, and add at the end of file (for example, e4_default_win7.css):

#org-eclipse-jdt-ui-packageexplorer tree,
#org-eclipse-ui-navigator-projectexplorer tree {
    font-size: 10px; /* <-- desired font size */
    font: consolas;  /* <-- font you want to have */
}

it was tested with eclipse v4.4 (luna) and eclipse v4.5 (mars) on windows 7.

score:16

here is an option that works on my windows7 machine suggested by diego v: https://stackoverflow.com/a/15011440/1713920

on juno you can adjust that font by css.

lookup the files in eclipse\plugins\org.eclipse.platform_4.2.x.y\css for your current style sheet (probably e4_default_win7.css), and then just add the following rule:

#org-eclipse-jdt-ui-packageexplorer tree,
#org-eclipse-ui-navigator-projectexplorer tree {
    font-size: 10px; /* <-- desired font size */
}

score:17

this answer applies to mac os x user. tested with mavericks (10.9.2) but should work in all versions.

as stated before in previous answers, to change the font size in package explorer you need to change system font size. the problem here is to do exactly this. my solution:

  1. download the free tinker tool utility and adjust font sizes.
  2. restart eclipse

enter image description here

the results:

enter image description here

happy coding!

score:18

i just found all those answers for changing the tree view font size in eclipse, tried several and finally got on the css class which reads quite more fashionable to me:

the theme i'm using includes the "e4_basestyle.css" in eclipse/opt/plugins/platform/css. there i added

.mpart tree {
    font-size: 10;
}

which works very fine with me (eclipse v4.3-sr2 (kepler) on ubuntu).

score:25

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

score:59

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.

score:102

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

Related Query

More Query from same tag