How to change font size in Eclipse for Java text editors?

670,932

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 WindowPreferences
  • Set the font size, GeneralAppearanceColors and FontsJavaJava 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 WindowPreferences.

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 -

shortcut for font eclipse

Solution 3

On Mac:

  1. Eclipse toolbar Eclipse → Preferences OR Command + , (comma)

  2. GeneralAppearanceColors and FontsBasicText Font

  3. Apply

Solution 4

This worked for me:

  1. On the Eclipse toolbar, select WindowPreferences.

  2. Set the font size (GeneralAppearanceColors and FontsBasicText Font):

    Enter image description here

  3. Save the preferences.

Solution 5

General → Appearance → Colors and Fonts → Java Editor text font

See the image:

enter image description here

Share:
670,932
Venkat
Author by

Venkat

I am Student and i've interested in JAVA..

Updated on June 10, 2021

Comments

  • Venkat
    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
    Bohn about 12 years
    Was 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
    shareef over 11 years
    tested on Version: Indigo Service Release 2 on 12-12-2012 good answer
  • RicardoBalda
    RicardoBalda almost 11 years
    Other solution Windows -> Preferences -> General -> appareance -> Colors a fonts -> Structured Text Editor -> Edit. this work for me :)
  • catch23
    catch23 almost 10 years
    @SumitSingh How did you achieve this color shema for eclipse? Can you give some explanation or link?
  • Sumit Singh
    Sumit Singh almost 10 years
    This is new theme in Luna See: eclipsesource.com/blogs/2014/06/20/…
  • Geek Stocks
    Geek Stocks over 8 years
    Checked on MARS on 12/18/2015 and still works just fine. Thanks man!
  • Peter Mortensen
    Peter Mortensen over 7 years
    After Colors and Fonts, isn't it something like JavaEditorJava Editor Text Font (set to default: Text Font) (two more levels interjected)? (Seen in Eclipse v4.6 (Neon), but for C/C++).
  • Peter Mortensen
    Peter Mortensen over 7 years
    How are preferences saved? Pressing button OK?
  • Mathieu K.
    Mathieu K. over 7 years
    Appears to be the same answer as 4539511.
  • Mathieu K.
    Mathieu K. over 7 years
    If we're talking about the menu bar, this is the same answer as 4539511.
  • Mathieu K.
    Mathieu K. over 7 years
    Does not work for me in Neon.2, at least on the Java file I'm looking at.
  • Daniel Hári
    Daniel Hári over 7 years
    For other languaged keyboards (like Hungarian): CTRL SHIFT (+) CTRL SHIFT (-)
  • Pierpaolo Cira
    Pierpaolo Cira over 7 years
    For Mac OsX use CMD key instead of Ctrl
  • M. Atif Riaz
    M. Atif Riaz about 7 years
    Yes this is more applicable as it is global settings
  • DwB
    DwB about 7 years
    The Window -> Preferences menu is still there in NEON.
  • Strinder
    Strinder almost 7 years
    Project is not active anymore.
  • NaN
    NaN about 6 years
    Works for me. Tested with Oxygen on Linux
  • Aman
    Aman over 4 years
    Edit Eclipse toolbar>Window> @BenniMcBeno.
  • ks1322
    ks1322 over 3 years
    For me Ctrl - to decrease, but Ctrl Shift + to increase.
  • DwB
    DwB about 3 years
    This is still correct in Eclipse v 4.9 (2018)
  • amdg
    amdg almost 3 years
    Open the java file and use Command and +/- to increase/decrease the font size