48

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Bob
  • 22,810
  • 38
  • 143
  • 225

4 Answers4

85

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.

Bharata
  • 13,509
  • 6
  • 36
  • 50
Aleksandr Kravets
  • 5,750
  • 7
  • 53
  • 72
8

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Abdull
  • 26,371
  • 26
  • 130
  • 172
  • This is the correct answer. `Structured Text Editor Text Font` is used by the XML editor. (By default it is set to the basic `Text Font`.) – Markus Pscheidt Jan 09 '15 at 13:40
  • 1
    Unfortunately that doesn't work in Eclipse IDE for Enterprise Java Developers for Version: 2019-06 (4.12.0) – NikolaS Jun 25 '20 at 08:30
2

I had to expand General to get to Appearance... I figured it out in about 3.2 seconds, but just in case anyone wants to save that 3.2 seconds:

Windows-> General -> Preferences-> Appearance-> Colors and Fonts-> Basic -> TextFont -> Edit...

This is in Eclipse IDE for Android Developers v23.0.2. I'm pretty sure this changes all font sizes for everything in the editor.. ? But I'm assuming if you want XML font to be bigger, you want all files to be that font size.

Lou Morda
  • 5,078
  • 2
  • 44
  • 49
0

I wanted to set bold font for XML attribute values in XML editor. It is in Window -> Preferences -> XML -> XML Files -> Editor -> Syntax Coloring.

MerkoSMS
  • 43
  • 1
  • 10