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?
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.
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 Window → Preferences. Drill down to: (General → Appearance → Colors and Fonts → Basic → Text Font) (at the bottom)
Eclipse will remember your settings for your current workspace.
I teach programming and use the larger font for the students in the back.
On Mac:
Eclipse toolbar Eclipse → Preferences OR Command + , (comma)
General → Appearance → Colors and Fonts → Basic → Text Font
Apply
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.
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.
Note Be sure to check out the ChandraBhan Singh's answer, it shows the key bindings to change the font size.
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.
I tend to use menu Windows → Preferences → General → Appearances → Colors and Fonts → Java Text Editors → Change → Apply.