459

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?

Samet ÖZTOPRAK
  • 2,428
  • 3
  • 23
  • 26
Venkat
  • 18,946
  • 25
  • 71
  • 83
  • 1
    Works fine in 3.5 using those same directions. – jzd Feb 07 '11 at 14:38
  • 75
    FYI, if you want to change all editors at the same time, select General → Appearance → Colors and Fonts → Basic → Text Font. – Philip Murphy Oct 10 '12 at 00:17
  • 2
    possible duplicate of [How to change font size quickly in Eclipse](http://stackoverflow.com/questions/6948374/how-to-change-font-size-quickly-in-eclipse) – Code-Apprentice Oct 31 '12 at 01:50
  • 1
    Other solution Windows -> Preferences -> General -> appareance -> Colors a fonts -> Structured Text Editor -> Edit. this work for me :) – RicardoBalda Sep 15 '13 at 00:26
  • Not sure if this is because changes were made beforehand, but I had to make changes to both "Basic" and "Java". The former affected things like the JSP editor, the latter affected the java programming window – IcedDante Dec 10 '14 at 14:51
  • 3
    **Eclipse Neon (4.6)** added `Ctrl` + `+` and `Ctrl` + `=` for **Zoom In** and `Ctrl` + `-` for **Zoom Out**. See http://www.eclipse.org/eclipse/news/4.6/M4/ – Elrond_EGLDer May 19 '16 at 13:41
  • Related (changing ***colours***): *[Eclipse fonts and background color](http://stackoverflow.com/questions/186118)* – Peter Mortensen Jan 01 '17 at 15:26
  • you can simply press CTR+ to increase and CTR- to decrease – Vikash Mar 13 '18 at 11:20

18 Answers18

431

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.

Note Be sure to check out the ChandraBhan Singh's answer, it shows the key bindings to change the font size.

Community
  • 1
  • 1
DwB
  • 33,855
  • 10
  • 50
  • 78
  • 3
    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! – Bohn Jun 30 '12 at 03:37
  • tested on Version: Indigo Service Release 2 on 12-12-2012 good answer – shareef Jan 11 '13 at 12:01
  • 1
    Other solution Windows -> Preferences -> General -> appareance -> Colors a fonts -> Structured Text Editor -> Edit. this work for me :) – RicardoBalda Sep 15 '13 at 00:26
  • Checked on MARS on 12/18/2015 and still works just fine. Thanks man! – Geek Stocks Dec 19 '15 at 04:19
  • The Window -> Preferences menu is still there in NEON. – DwB May 19 '17 at 14:51
72

On Mac:

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

  2. GeneralAppearanceColors and FontsBasicText Font

  3. Apply

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
BenniMcBeno
  • 2,219
  • 5
  • 21
  • 28
66

For Eclipse Neon

To Increase Ctrl +

To reduce Ctrl -

shortcut for font eclipse

ChandraBhan Singh
  • 2,363
  • 18
  • 26
53

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.

Community
  • 1
  • 1
AlvaroCachoperro
  • 661
  • 6
  • 10
32
General → Appearance → Colors and Fonts → Java Editor text font

See the image:

enter image description here

Sumit Singh
  • 23,530
  • 8
  • 71
  • 99
20

The Eclipse-Fonts extension will add toolbar buttons and keyboard shortcuts for changing font size. You can then use AutoHotkey to make Ctrl + mousewheel zoom.

Under menu HelpInstall New Software... in the menu, paste the update URL (http://eclipse-fonts.googlecode.com/svn/trunk/FontsUpdate/) into the Works with: text box and press Enter. Expand the tree and select FontsFeature as in the following image:

Eclipse extension installation screen capture

Complete the installation and restart Eclipse. Then you should see the A toolbar buttons (circled in red in the following image) and be able to use the keyboard shortcuts Ctrl + - and Ctrl + = to zoom (although you may have to unbind those keys from Eclipse first).

Eclipse screen capture with the font size toolbar buttons circled

To get Ctrl + mouse wheel zooming, you can use AutoHotkey with the following script:

; Ctrl + mouse wheel zooming in Eclipse.
; Requires Eclipse-Fonts (https://code.google.com/p/eclipse-fonts/).
; Thank you for the unique window class, SWT/Eclipse.
;
#IfWinActive ahk_class SWT_Window0
    ^WheelUp:: Send ^{=}
    ^WheelDown:: Send ^-
#IfWinActive
Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Naveed Ahmad
  • 6,199
  • 2
  • 54
  • 80
13

Enter image description here

Menu WindowPreferences. GeneralAppearanceColors and FontsBasicText Font

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
ThmHarsh
  • 563
  • 6
  • 7
13

Press ctrl + - to decrease, and ctrl + + to increase the Font Size.

It's working for me in Eclipse Oxygen.

frianH
  • 5,901
  • 6
  • 13
  • 36
shashi
  • 360
  • 3
  • 8
11

On the Eclipse toolbar, select WindowPreferences, set the font size (GeneralAppearanceColors and FontsBasicText Font).

Save the preferences.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
user2559897
  • 111
  • 1
  • 2
10

If you are using windows then try with CTRL,SHIFT,+ and for decreasing font size you can use CTRL,SHIFT,-

Shubham Sharma
  • 2,650
  • 5
  • 25
  • 44
4

You can have a look at Eclipse color theme, also which has a hell of a lot of options for customizing font, background color, etc.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
false9striker
  • 1,943
  • 3
  • 34
  • 38
4
  1. On the menu bar, select WindowPreferences
  2. Set the font size (GeneralAppearanceColors and FontsStructured Text EditorsStructured Text Editor Text Font (set to default: Text Font)Edit...).
  3. Save the preferences.
Mathieu K.
  • 283
  • 3
  • 13
Anand
  • 49
  • 1
  • 1
    After *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)](https://en.wikipedia.org/wiki/Eclipse_%28software%29#Releases), but for C/C++). – Peter Mortensen Jan 01 '17 at 14:21
  • Does not work for me in Neon.2, at least on the Java file I'm looking at. – Mathieu K. Feb 03 '17 at 16:23
3

Running Eclipse v4.3 (Kepler), the steps outlined by AlvaroCachoperro do the trick for the Java text editor and console window text.

Many of the text font options, including the Java Editor Text Font note, are "set to default: Text Font". The 'default' can be found and configured as follows:

On the Eclipse toolbar, select WindowPreferences. Drill down to: (GeneralAppearanceColors and FontsBasicText Font) (at the bottom)

  • Click Edit and select the font, style and size
  • Click OK in the Font dialog
  • Click Apply in the Preferences dialog to check it
  • Click OK in the Preferences dialog to save it

Eclipse will remember your settings for your current workspace.

I teach programming and use the larger font for the students in the back.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
0

I tend to use menu WindowsPreferencesGeneralAppearancesColors and FontsJava Text EditorsChangeApply.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
0

Try the tarlog plugin. You can change the font through Ctrl++ and Ctrl-- commands with it. A very convenient thing.

https://code.google.com/archive/p/tarlog-plugins/downloads

praveenj
  • 340
  • 2
  • 15
0

You can use

ctrl and + or - key

Usman Yaqoob
  • 453
  • 3
  • 12
0

If you are using STS, then goto STS/Contents/Eclipse directory and open the STS.ini file.

From the STS.ini file, remove the flooring line:

-Dorg.eclipse.swt.internal.carbon.smallFonts

And restart the STS.

KayV
  • 9,560
  • 8
  • 68
  • 111
0

I Found the best way to increase Font Size in Eclipse:

Follow this path : Eclipse-Folder\plugins\org.eclipse.ui.themes_1.2.100.v20180514-1547\css

--There are a bunch of Files here and it depends on user system which file to change.

* {
  font-size:13;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: normal;
} 

you can even change Font Family if you like.

  1. For Windows Users add the following piece of css at BOTTOM of these files: File Names: e4_default_gtk.css & e4_default_win.css

  2. For Mac Users: e4_default_mac.css