How can I change font size in Eclipse for ALL text editors?

Eclipse

Eclipse Problem Overview


I had to do a presentation yesterday, and as part of the presentation, I used Eclipse to show some code. Many of my coworkers in the room could not read the text and asked me to increase the size of the text for ALL files, not just Java files or XML files.

But it wasn't immediately obvious from the available options how to do this. I went to menu WindowPreferences and typed font in the search input. This filtered the options to GeneralAppearanceColors and Fonts. From here, I could see an option to change the font in Java files, but I didn't know how to change the font globally.

I'm using Eclipse v4.3 Service Release 1 (Kepler) on Windows.

This is similar to Stack Overflow question How can I change font size in Eclipse for Java text editors?.

Eclipse Solutions


Solution 1 - Eclipse

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

Solution 2 - Eclipse

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

Solution 3 - Eclipse

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 + "-"

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

this video help you

Solution 5 - Eclipse

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

Solution 6 - Eclipse

Just for reference, if anyone change font settings from PreferencesGeneralAppearanceColors and Fonts*, but it wouldn't work...

In my case, it caused by the Eclipse color theme. Just uninstall it.

Solution 7 - Eclipse

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.

Solution 8 - Eclipse

  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"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJake TorontoView Question on Stackoverflow
Solution 1 - EclipseJake TorontoView Answer on Stackoverflow
Solution 2 - Eclipsegs_zaView Answer on Stackoverflow
Solution 3 - EclipseGuillaume LangloisView Answer on Stackoverflow
Solution 4 - EclipsesirmagidView Answer on Stackoverflow
Solution 5 - Eclipseeugen9View Answer on Stackoverflow
Solution 6 - EclipseRRTWView Answer on Stackoverflow
Solution 7 - EclipseNavin IsraniView Answer on Stackoverflow
Solution 8 - EclipseTopaniView Answer on Stackoverflow