How to change font size in Eclipse for Java text editors?
Solution 1
If you are changing the font size, but it is only working for the currently open file, then I suspect that you are changing the wrong preferences.
- On the Eclipse toolbar, select Window → Preferences
- Set the font size, General → Appearance → Colors and Fonts → Java → Java Editor Text Font).
- Save the preferences.
Check that you do not have per-project preferences. These will override the top-level preferences.
Eclipse v4.2 (Juno) note
Per comment below, this has moved to the Eclipse Preferences menu (no longer named the Window menu).
Eclipse v4.3 (Kepler) note
The Window menu is live again, that is, menu Window → Preferences.
Eclipse 2021-12 note
Verified that the path described (Window → Preferences, General → Appearance → Colors and Fonts → Java → Java Editor Text Font) is still correct.
Note Be sure to check out the ChandraBhan Singh's answer, it shows the key bindings to change the font size.
Solution 2
For Eclipse Neon
To Increase Ctrl +
To reduce Ctrl -
Solution 3
On Mac:
Eclipse toolbar Eclipse → Preferences OR Command + , (comma)
General → Appearance → Colors and Fonts → Basic → Text Font
Apply
Solution 4
This worked for me:
On the Eclipse toolbar, select Window → Preferences.
Set the font size (General → Appearance → Colors and Fonts → Basic → Text Font):
Save the preferences.
Solution 5
General → Appearance → Colors and Fonts → Java Editor text font
See the image:
Comments
-
Venkat about 3 years
I have just tried to change my font size in Eclipse 3.6.0 in the following way:
General → Appearance → Colors and Fonts → Java Editor text font
However, the font size only changed in the file I had open. How can I change the font size for all Java files and projects I open in Eclipse?
-
Bohn about 12 yearsWas searching for the same question tonight and found this...just a quick note: in JUNO they have moved Preferences section under EClise menu...: EClipse->Preferences..... just If I knew Eclipse keeps moving things around so much!
-
shareef over 11 yearstested on Version: Indigo Service Release 2 on 12-12-2012 good answer
-
RicardoBalda almost 11 yearsOther solution Windows -> Preferences -> General -> appareance -> Colors a fonts -> Structured Text Editor -> Edit. this work for me :)
-
catch23 almost 10 years@SumitSingh How did you achieve this color shema for eclipse? Can you give some explanation or link?
-
Sumit Singh almost 10 yearsThis is new theme in Luna See: eclipsesource.com/blogs/2014/06/20/…
-
Geek Stocks over 8 yearsChecked on MARS on 12/18/2015 and still works just fine. Thanks man!
-
Peter Mortensen over 7 yearsAfter Colors and Fonts, isn't it something like Java → Editor → Java Editor Text Font (set to default: Text Font) (two more levels interjected)? (Seen in Eclipse v4.6 (Neon), but for C/C++).
-
Peter Mortensen over 7 yearsHow are preferences saved? Pressing button OK?
-
Mathieu K. over 7 yearsAppears to be the same answer as 4539511.
-
Mathieu K. over 7 yearsIf we're talking about the menu bar, this is the same answer as 4539511.
-
Mathieu K. over 7 yearsDoes not work for me in Neon.2, at least on the Java file I'm looking at.
-
Daniel Hári over 7 yearsFor other languaged keyboards (like Hungarian): CTRL SHIFT (+) CTRL SHIFT (-)
-
Pierpaolo Cira over 7 yearsFor Mac OsX use CMD key instead of Ctrl
-
M. Atif Riaz about 7 yearsYes this is more applicable as it is global settings
-
DwB about 7 yearsThe Window -> Preferences menu is still there in NEON.
-
Strinder almost 7 yearsProject is not active anymore.
-
NaN about 6 yearsWorks for me. Tested with Oxygen on Linux
-
Aman over 4 yearsEdit Eclipse toolbar>Window> @BenniMcBeno.
-
ks1322 over 3 yearsFor me
Ctrl -
to decrease, butCtrl Shift +
to increase. -
DwB about 3 yearsThis is still correct in Eclipse v 4.9 (2018)
-
amdg almost 3 yearsOpen the java file and use
Command
and+/-
to increase/decrease the font size