• Nevoic@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      As someone who has primarily used spaces, I still use the tab key. I sincerely hope most space users understand that your editor can expand your tab key into spaces, and people aren’t genuinely going around spamming their spacebar 2->16 times for various indentation levels.

    • Coconut1233@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      4
      ·
      10 months ago

      Spaces are kinda better, because tabs are not consistent across editors/platforms. Just please use the tab key to indent, don’t press the spacebar x times like a monkey

      • Luna@lemdro.id
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        10 months ago

        I prefer tabs because they aren’t consistent

        I personally find 2-space indented code harder to read than 4-space. If I’m working on someone else’s codebase which is indented with 2-spaces then I have to cope. But if it’s tab-indented then I can just edit the setting in my editor to display a tab char as 4 whitespace chars