Changing indentation settings in the Spyder editor for Python

前端 未结 3 1476
忘了有多久
忘了有多久 2021-01-01 16:22

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?

相关标签:
3条回答
  • 2021-01-01 16:44

    go to >>>Tools in the menu bar

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

    set indentation characters: to "4 spaces"

    hurray! Mission accomplished

    0 讨论(0)
  • 2021-01-01 16:48

    Spyder v. 4.0 or higher:

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

    Other versions:

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

    0 讨论(0)
  • 2021-01-01 16:56

    On Mac w/ Spyder 4.0.1, it's

    Python -> Preference -> Editor -> Source Code (tab) -> Indentation characters

    0 讨论(0)
提交回复
热议问题