Changing indentation settings in the Spyder editor for Python

denvar picture denvar · Mar 23, 2016 · Viewed 34.2k times · Source

I am using the Spyder editor for Python. I need to change the indentation setting (e.g., let "tab" mean "4 spaces").

How do I accomplish this?

Answer

Vadim Shkaberda picture Vadim Shkaberda · Mar 23, 2016

Spyder v. 4.0 or higher:

Tools >>> Preferences >>> Editor >>> Source code >>> Indentation characters

Other versions:

Tools >>> Preferences >>> Editor >>> Advanced settings >>> Indentation characters