How to change the font size in Eclipse for ALL text editors?

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

But from the available options it is not immediately clear how to do this. I went to the Window → Preferences menu and typed the font in the search tab. This filtered out the options “General” → “Appearance” → “Colors and Fonts”. From here, I could see the font change option in Java files, but I did not know how to change the font around the world.

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

This seems like a question. How do I change the font size in Eclipse text editors for Java? .

+49
eclipse
Apr 24 '14 at 15:08
source share
7 answers

This is what we found out, and it is also found in this answer , as well as this answer (I quote):

Go to "Settings" → "General" → "Appearance" → "Colors" and "Fonts", expand the "General" folder and select "Text Font" and change it to any desired size.

Pretty simple!

Here's what the dialog looks like - click Edit

+92
Apr 24 '14 at 15:08
source share

Answer @Jake works fine in the editor. To change the font size of the global Eclipse GUI, I added the following:

*{font-size:8;} 

in file:

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

worked for me. It is explained here: How to change eclipse font size

+12
Apr 23 '15 at 11:41
source share

Eclipse provides a convenient shortcut for quick access to what is well explained in Jake Toronto's answer (only 2 points increment / reduction).

On MacOS:

  • Increase by 2 points: team + "+"
  • Decrease by 2 points: command + "-"

On Windows / Fedora:

  • Increase by 2 points: CTRL + "+"
  • Decrease by 2 points: CTRL + "-"
+5
Mar 20 '17 at 1:56 on
source share

The answer from @George worked fine, but if it doesn’t work on the file to which it referred, you can try to apply the same modification to another file from the same folder: e4_basestyle.css.

This worked for me (my version of the Eclipse SDK is 4.2.2).

+2
Mar 02 '16 at 19:32
source share

Just for reference, if someone changes the font settings from "Settings" → "General" → "Appearance" → "Colors and Fonts" **, but this will not work ...

In my case, this is caused by the color theme of Eclipse. Just delete it.

+1
Jul 11 '16 at 2:58
source share

For XML or HTML files, you can choose Structured Text Editors instead of Basic in the path given by Jake Toronto.

+1
Dec 08 '16 at 1:17
source share
  • Open Eclipse Settings
  • In the left menu, select " General> Appearance> Colors and Fonts "
  • In the window that appears under the Java node, select " Text editor font Java "
  • The notification button " Change Defalt ... " is now enabled, click on it
  • Choose your preferred font settings and click OK.

Now you will notice that all editor fonts have been changed to your default one (if they were installed by default to start). You can also change any editor to this parameter by selecting the editor font option and clicking " Go to default "

0
Nov 02 '17 at 5:01
source share



All Articles