12
votes

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.

4

4 Answers

18
votes

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

3
votes

This is for Mac:

Go to Eclipse → PreferencesGeneralAppearanceColors and FontsBasicText Font.

Edit the font structure for the text font.

Screen shot for the process

2
votes

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.

2
votes

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.