Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

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.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top