12
votes

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

I navigate to menu Window → Preference → General → Appearance → Colors & 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 Window → Preferences → PyDev → Editor (PyDev Editor Preferences).

3
votes

This is for Mac:

Go to Eclipse → Preferences → General → Appearance → Colors and Fonts → Basic → Text 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 General → Appearance → Colors & 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 → Preferences → PyDev (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.