score:114

Accepted answer

this is what we figured out, and this is also found in this answer and also this answer (i'll quote):

go to preferencesgeneralappearancecolors and fonts, expand the "basic" folder and select "text font" and change that to whatever size you like.

pretty simple!

here's what the dialog looks like -- click edit

score:1

just for reference, if anyone change font settings from preferencesgeneralappearance → *colors and fonts**, but it wouldn't work...

in my case, it caused by the eclipse color theme. just uninstall it.

score:1

for xml or html files, you can select the "structured text editors" option instead of "basic" in the path given by jake toronto's answer.

score:1

  1. open eclipse preferences
  2. in left menu select "general>appearance>colors and fonts"
  3. in the resulting window under the java node select "java editor text font"
  4. notice button "edit defalt..." is now enabled, click it
  5. choose your preferred font settings and click ok

now you will notice that all editor fonts have changed to your selected default (if they were set to the default to begin with). also you can now change any editor back to this setting by selecting the editor font setting and clicking "go to default"

score:2

the answer by @george worked fine, but if it doesn't work on the file he referred to, then you might try applying the same modification on another file from the same folder: e4_basestyle.css.

for me it worked this way (my version of the eclipse sdk is 4.2.2).

score:5

eclipse provides a handy shortcut to shortcut for what is well explained in jake toronto answer (only by 2 points increments/decrements though).

on macos:

  • increase by 2 points: command + "+"
  • decrease by 2 points: command + "-"

on windows/fedora:

  • increase by 2 points: ctrl + "+"
  • decrease by 2 points: ctrl + "-"

score:5

go to preferences → general → appearance → colors and fonts, expand the "basic" folder and select "text font" and change that to whatever size you like.

this video help you

score:17

the answer by @jake works fine on the editor. to also change the font size of the global eclipse gui, i have added the follows:

*{font-size:8;} 

in the file:

eclipse_home/plugins/org.eclipse.ui.themes_*/css/e4_default_gtk.css

worked for me. this is explained here: how to change eclipse font sizes


Related Query

More Query from same tag