Sometimes we need to change font style for Java code in Eclipse, e.g. increasing font size for more readability. This can be done easily in Eclipse, by going to menu Window > Preferences… In the Preferences dialog:
Now, in the Font dialog you can change font name, font style and font size:
Click OK, the Preview pane in the Preferences dialog lets you see the changes before applying it:
When the preview suits your need, click OK to close the Preferences dialog, and then the changes take effect immediately. Here’s an example screenshot shows text in a Java code editor has bigger font than usual:
When you want to go back to the default setting, go to the Preferences dialog again, and click Reset button for Java Editor Text Font in Colors and Fonts setting: