What's the default font that Eclipse uses for Java code?
3 Answers
The default font Eclipse uses for (Java) code is Monospace.
-
4In my version of Eclipse Photon with Dark theme
Consolas
is the right answer. Aug 22, 2018 at 12:13
The default font style eclipse is using is Consolas
however Courier New
is also a good option to go with.
Depending on your Eclipse version, the font might differ. Go to Window-> Preferences->General->Appearance->Color and Fonts. Choose Basic->Text Font and you can hit the Edit button to change font type and font size. It will be used by several other properties below that default to this font.