Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

eclipse

People also ask

How do I change font size 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. Show activity on this post. Restart Eclipse to apply changes.

How do I change the text editor in Eclipse?

Tip. You can set which Eclipse editor or external program to use to open a specific type of file based on its file extension. Just select Window→ Preferences→ Workbench→ File Associations, select the file type, and associate an editor or program with it (if nothing else, you can use Eclipse's default text editor).


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


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


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

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


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