Change Font In Eclipse Editor

Home » Newcomers » Newcomers » Change font size in Java (source code) editor ?

Note that, if nothing is selected in the editor, Eclipse applies formatting for the whole file: Ctrl + I: Corrects indentation for current line or a selected code block. This is useful as it helps you avoid manually using Tab key to correct the indentation. On the Eclipse toolbar, select Window → Preferences. Drill down to: ( General → Appearance → Colors and Fonts → Basic → Text 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.

Show:Today's Messages::Show Polls::Message Navigator

The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks. Here's a quick little guide on how to change the font size in Eclipse Neon. I know, it's a lot of work. Thanks for watching.

Change font size in Java (source code) editor ?[message #190590]Mon, 29 January 2007 18:31
Charlie Kelly
Messages: 276
Registered: July 2009
Can the size of the font used in the Java source code editor be changed?
If yes, how?
Thanks
Charlie
Re: Change font size in Java (source code) editor ?[message #190616 is a reply to message #190590]Mon, 29 January 2007 18:38
Eclipse User
Originally posted by: wayne.beaton._NOSPAM_eclipse.org
Charle Kelly wrote:
> Can the size of the font used in the Java source code editor be changed?
> If yes, how?
>
> Thanks
>
> Charlie
Window > Preferences > General > Appearance > Colors and Fonts > Java >
Java Editor Text Font
HTH,
Wayne
Re: Change font size in Java (source code) editor ?[message #190621 is a reply to message #190616]Mon, 29 January 2007 18:50
Charlie Kelly
Messages: 276
Registered: July 2009
Hi Wayne,
Worked perfectly.
Thanks
Charlie
Wayne Beaton wrote:
> Charle Kelly wrote:
>
>> Can the size of the font used in the Java source code editor be changed?
>> If yes, how?
>>
>> Thanks
>>
>> Charlie
>
>
> Window > Preferences > General > Appearance > Colors and Fonts > Java >
> Java Editor Text Font
>
> HTH,
>
> Wayne
Re: Change font size in Java (source code) editor ?[message #190782 is a reply to message #190621]Tue, 30 January 2007 14:31
Lorenzo Bettini
Messages: 1784
Registered: July 2009
Location: Firenze, Italy
> Wayne Beaton wrote:
>
>> Charle Kelly wrote:
>>
>>> Can the size of the font used in the Java source code editor be changed?
>>> If yes, how?
>>>
>>> Thanks
>>>
>>> Charlie
>>
>>
>> Window > Preferences > General > Appearance > Colors and Fonts > Java
>> > Java Editor Text Font
>>
is there a way to change all the fonts? In particular I'd like them to
be smaller (e.g., in linux fonts are much bigger than in windows).
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.comhttp://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengenhttp://doublecpp.sourceforge.net

HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
Re: Change font size in Java (source code) editor ?[message #190843 is a reply to message #190782]Tue, 30 January 2007 18:05
Eclipse User
Originally posted by: jacekp.siat.pl
Hi!
most of the fonts used in eclipse user interface are taken from OS. In
linux this means, you can change all fonts by modifying gtk
configuration. Search the internet for .gtkrc, it's quite often topic.
cheers
Jacek
Lorenzo Bettini napisał(a):
>> Wayne Beaton wrote:
>>
>>> Charle Kelly wrote:
>>>
>>>> Can the size of the font used in the Java source code editor be
>>>> changed?
>>>> If yes, how?
>>>>
>>>> Thanks
>>>>
>>>> Charlie
>>>
>>>
>>> Window > Preferences > General > Appearance > Colors and Fonts > Java
>>> > Java Editor Text Font
>>>
>
> is there a way to change all the fonts? In particular I'd like them to
> be smaller (e.g., in linux fonts are much bigger than in windows).
>
Re: Change font size in Java (source code) editor ?[message #190875 is a reply to message #190843]Tue, 30 January 2007 18:38
Charlie Kelly
Messages: 276
Registered: July 2009
Hi Jacek,
Thanks for your reply.
The reply that Wayne Beaton posted to my question yesterday, solved the
problem for me.
Charlie
Jacek Pospychala wrote:
> Hi!
> most of the fonts used in eclipse user interface are taken from OS. In
> linux this means, you can change all fonts by modifying gtk
> configuration. Search the internet for .gtkrc, it's quite often topic.
>
> cheers
> Jacek
>
> Lorenzo Bettini napisał(a):
>
>>> Wayne Beaton wrote:
>>>
>>>> Charle Kelly wrote:
>>>>
>>>>> Can the size of the font used in the Java source code editor be
>>>>> changed?
>>>>> If yes, how?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Charlie
>>>>
>>>>
>>>>
>>>> Window > Preferences > General > Appearance > Colors and Fonts >
>>>> Java > Java Editor Text Font
>>>>
>>
>> is there a way to change all the fonts? In particular I'd like them
>> to be smaller (e.g., in linux fonts are much bigger than in windows).
>>
Re: Change font size in Java (source code) editor ?[message #190968 is a reply to message #190843]Wed, 31 January 2007 13:14
Lorenzo Bettini
Messages: 1784
Registered: July 2009
Location: Firenze, Italy
Jacek Pospychala wrote:
> Hi!
> most of the fonts used in eclipse user interface are taken from OS. In
> linux this means, you can change all fonts by modifying gtk
> configuration. Search the internet for .gtkrc, it's quite often topic.
>
> cheers
> Jacek
>
> Lorenzo Bettini napisał(a):
>>> Wayne Beaton wrote:
>>>
>>>> Charle Kelly wrote:
>>>>
>>>>> Can the size of the font used in the Java source code editor be
>>>>> changed?
>>>>> If yes, how?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Charlie
>>>>
>>>>
>>>> Window > Preferences > General > Appearance > Colors and Fonts >
>>>> Java > Java Editor Text Font
>>>>
>>
>> is there a way to change all the fonts? In particular I'd like them
>> to be smaller (e.g., in linux fonts are much bigger than in windows).
>>
I'm using kde and not gnome, and I don't have such a file...
so it's not possible to change the overall font size from eclipse?
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.comhttp://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengenhttp://doublecpp.sourceforge.net

HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
Re: Change font size in Java (source code) editor ?[message #190985 is a reply to message #190968]Wed, 31 January 2007 13:29
Eclipse User
Originally posted by: jacekp.siat.pl
Lorenzo Bettini napisał(a):
> Jacek Pospychala wrote:
>> Hi!
>> most of the fonts used in eclipse user interface are taken from OS. In
>> linux this means, you can change all fonts by modifying gtk
>> configuration. Search the internet for .gtkrc, it's quite often topic.
>>
>> cheers
>> Jacek
>>
>> Lorenzo Bettini napisał(a):
>>>> Wayne Beaton wrote:
>>>>
>>>>> Charle Kelly wrote:
>>>>>
>>>>>> Can the size of the font used in the Java source code editor be
>>>>>> changed?
>>>>>> If yes, how?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Charlie
>>>>>
>>>>>
>>>>> Window > Preferences > General > Appearance > Colors and Fonts >
>>>>> Java > Java Editor Text Font
>>>>>
>>>
>>> is there a way to change all the fonts? In particular I'd like them
>>> to be smaller (e.g., in linux fonts are much bigger than in windows).
>>>
>
> I'm using kde and not gnome, and I don't have such a file...
>
> so it's not possible to change the overall font size from eclipse?
>
Eclipse is compiled with gtk, so it requires gtk libs to run. That
doesn't mean you should switch to gnome :)
Essentially work that you have to do is to find, where the .gtkrc file
should be located and what should be inside.
Have a look at here, for similar problem, but with buttons:
http://ubuntuforums.org/archive/index.php/t-16083.html
And here an example gtkrc file:
http://dev.eclipse.org/newslists/news.eclipse.tools/msg37977 .html
let me know if you have any further questions
Jacek
Re: Change font size in Java (source code) editor ?[message #191076 is a reply to message #190968]Wed, 31 January 2007 15:25
Charlie Kelly
Messages: 276
Registered: July 2009
Hi Lorenzo,
What happens when you change Preferences as described below:
Window > Preferences > General > Appearance > Colors and Fonts > Java >
Java Editor Text Font
Lorenzo Bettini wrote:
> Jacek Pospychala wrote:
>
>> Hi!
>> most of the fonts used in eclipse user interface are taken from OS. In
>> linux this means, you can change all fonts by modifying gtk
>> configuration. Search the internet for .gtkrc, it's quite often topic.
>>
>> cheers
>> Jacek
>>
>> Lorenzo Bettini napisał(a):
>>
>>>> Wayne Beaton wrote:
>>>>
>>>>> Charle Kelly wrote:
>>>>>
>>>>>> Can the size of the font used in the Java source code editor be
>>>>>> changed?
>>>>>> If yes, how?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Charlie
>>>>>
>>>>>
>>>>>
>>>>> Window > Preferences > General > Appearance > Colors and Fonts >
>>>>> Java > Java Editor Text Font
>>>>>
>>>
>>> is there a way to change all the fonts? In particular I'd like them
>>> to be smaller (e.g., in linux fonts are much bigger than in windows).
>>>
>
> I'm using kde and not gnome, and I don't have such a file...
>
> so it's not possible to change the overall font size from eclipse?
>
Re: Change font size in Java (source code) editor ?[message #191294 is a reply to message #191076]Thu, 01 February 2007 11:14
Lorenzo Bettini
Messages: 1784
Registered: July 2009
Location: Firenze, Italy
Charle Kelly wrote:
> Hi Lorenzo,
>
> What happens when you change Preferences as described below:
> Window > Preferences > General > Appearance > Colors and Fonts > Java >
> Java Editor Text Font
>
it only changes the size of the font of the text editor...
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.comhttp://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengenhttp://doublecpp.sourceforge.net

HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
Previous Topic:Update manager keeps prompting even though update installed
Next Topic:TPTP automated GUI testing for SWING applications
Goto Forum:
-=] Back to Top [=-

Current Time: Wed Aug 11 13:39:24 GMT 2021

Powered by FUDForum. Page generated in 0.02433 seconds
Details
Written by Nam Ha Minh
Last Updated on 07 August 2019 | Print Email
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 Change Font In Eclipse EditorFontPreferences dialog:
  • Select General > Appearance > Colorsand Fonts (1) in the left pane.
  • Select Java Editor Text Font (2) in the center.
  • Click Edit… button in the right.

How To Change Font Color In Eclipse Editor

Now, in the Font dialog you can change font name, font style and font size:Click OK, the EditorPreviewFont pane in the

Change Font In Eclipse Editor Download

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 FontChange font in eclipse editor download in Colors and Fonts setting:

Other Eclipse Tutorials:


About the Author:

Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.