Search code examples
pythontabsspyderspacesenter

Is pressing *enter* in Spyder (in Python) a tab or 4 spaces?


I have read all about the horrendous nature of tabs instead of spaces in Python. When I press enter in Spyder, is the IDE adding a tab or 4 spaces?


Solution

  • (Spyder maintainer here) Spyder uses spaces by default. However, that can be changed to tabs by going to

    Preferences > Editor > Advanced settings > Indentation characters