12

In Eclipse, how can I change default font for Python code in the editor (PyDev plugin)?

I navigate to menu WindowPreferenceGeneralAppearanceColors & Fonts, but I don't find which item would affect the Python code font.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
bnguyen82
  • 6,048
  • 5
  • 30
  • 39
  • The canonical question is *[How can I change font size in Eclipse for Java text editors?](http://stackoverflow.com/questions/4922305)*. – Peter Mortensen Jan 01 '17 at 15:59

4 Answers4

18

As you are using PyDev, you should have a look at menu WindowPreferencesPyDevEditor (PyDev Editor Preferences).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
gecco
  • 17,969
  • 11
  • 51
  • 68
  • 7
    Yes, I use PyDev. I follow your guide and click on link Color & Fonts at the bottom. I lead me to item Basic - Text Font in screen Colors & Fonts I mentioned in question. That is the item affecting python code fonts. Thanks. – bnguyen82 Mar 27 '12 at 03:52
3

This is for Mac:

Go to Eclipse → PreferencesGeneralAppearanceColors and FontsBasicText Font.

Edit the font structure for the text font.

Screen shot for the process

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Abhishek Upadhyaya
  • 366
  • 1
  • 6
  • 15
2

On a Mac, I can get to the PyDev settings via:

Eclipse → PreferencesPyDev (in tree) → Editor (subtree)

In my case, I wanted to change hash tag comments from nearly invisible grey to a better color. It worked like a charm.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Robert Casey
  • 1,511
  • 18
  • 19
2

Following the guidance of gecco, I found out the item in GeneralAppearanceColors & Fonts which affects Python code fonts. It's Text Font in the Basic folder.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
bnguyen82
  • 6,048
  • 5
  • 30
  • 39