How can I change the font of layout (XML) editor in Eclipse?
-
16-06-2021 - |
Question
I know how to change the font of "Java editor" in Eclipse in menu Windows → Preferences → Appearance → Colors 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?
Solution
Use menu Windows
→ Preferences
→ Appearance
→ Colors and Fonts
→ Basic
→ Text 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 Window → Preferences → General → Appearance → Colors and Fonts → Structured Text Editors → Structured 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.