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

To change the font size in the Java text editor in Eclipse, follow these steps:

  1. Go to the Window menu and select Preferences.
  2. In the Preferences window, go to General -> Appearance -> Colors and Fonts.
  3. In the Colors and Fonts window, scroll down and select Java Editor Text Font.
  4. Click the Edit button.
  5. In the Font dialog that appears, you can choose a new font and size for the Java editor text.
  6. Click OK to apply the changes.

Alternatively, you can use the Ctrl + + and Ctrl + - keyboard shortcuts to increase and decrease the font size in the Java editor. You can also use the Ctrl + Mouse Wheel to change the font size.

Note that these changes will only affect the font size in the Java editor, and not in other parts of Eclipse like the Package Explorer or the Outline view. To change the font size in these areas, you will need to repeat the steps above and choose a different font setting.