Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the font of layout (XML) editor in Eclipse?

I know how to change the font of "Java editor" in Eclipse in menu WindowsPreferencesAppearanceColors and Fonts, but I could not find an option for changing the font of "layout editor" for files like myLayout.xml or strings.xml.

Where is it?

like image 237
Bobs Avatar asked Jun 25 '12 07:06

Bobs


People also ask

Can I change the font in Eclipse?

Go to Preferences > General > Appearance > Colors and Fonts, expand the "Basic" folder and select "Text Font" and change that to whatever size you like. Show activity on this post. Restart Eclipse to apply changes.

Which Eclipse editor font is best?

If running on Windows, you may give Microsoft Consolas a shot (included in Vista or later, and available as a separate download). I use it everywhere. Show activity on this post. I'm a huge fan of Bitstream Vera Sans Mono, which I use at 9pt.

What is the default font in Eclipse?

The default font style eclipse is using is Consolas however Courier New is also a good option to go with.

How do I change the font in Eclipse Oxygen?

Eclipse Project/Package explorer, Outline window are using OS default font for labels. For Win 7+ go to Control Panel\Appearance and Personalization\Personalization click 'Window Color' to start 'Window Color and Appearance' dialog. Increase 'Message Box' font.


2 Answers

Use menu WindowsPreferencesAppearanceColors and FontsBasicText Font. This is a common text font setting that is applied to XML file editors by default.

I also found this message.

like image 60
Aleksandr Kravets Avatar answered Oct 14 '22 17:10

Aleksandr Kravets


For my Eclipse v4.4 (Luna) installation, the XML editor font size is changed under:

Menu WindowPreferencesGeneralAppearanceColors and FontsStructured Text EditorsStructured Text Editor Text Font.

like image 41
Abdull Avatar answered Oct 14 '22 16:10

Abdull