• ℍ𝕂-𝟞𝟝
    link
    fedilink
    English
    11•2 years ago

    Python is one of the few languages with an official style guide, I think that guide says 4 spaces.

      • @[email protected]
        link
        fedilink
        English
        11•2 years ago

        I’ve set tabs to four spaces in vim because who the fuck defaults tab to eight spaces. That shit looks alien and pushes text off the screen fast.

        • @[email protected]
          link
          fedilink
          English
          4•2 years ago

          I set my clang-format to tabs only (actual tabs ASCII 0x9, no alignment and there is a continuation tab instead), then anyone can set their editor to whatever tab length they feel like and look at their code however they want.

          But no spaces on the left of my code. This is for C, C++ and JSON.

      • lad
        link
        fedilink
        English
        5•2 years ago

        4 tabs is a bit overboard, don’t you think?