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?

4
  • 2
    tell me when you discover it.. Commented Jun 25, 2012 at 7:50
  • See this It may helps you. Commented Jun 25, 2012 at 7:54
  • Are you talking about Android? What's this layout editor you're talking about. Please go into more detail. Commented Jun 25, 2012 at 8:01
  • The canonical question is How can I change font size in Eclipse for Java text editors? (but this does not necessarily make this a duplicate). Commented Jan 1, 2017 at 18:02

4 Answers 4

87

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.

Sign up to request clarification or add additional context in comments.

4 Comments

Does not it affect on other Appearances?
Yes it does affect all editors which don't have own settings.
See edit to my answer, there are more such messages in google
First click apply button and then click ok button. Otherwise it dose not take affect.
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.

2 Comments

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.)
Unfortunately that doesn't work in Eclipse IDE for Enterprise Java Developers for Version: 2019-06 (4.12.0)
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.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.