Changing indentation settings in the Spyder editor for Python
Spyder v. 4.0 or higher:
Tools >>> Preferences >>> Editor >>> Source code >>> Indentation characters
Other versions:
Tools >>> Preferences >>> Editor >>> Advanced settings >>> Indentation characters