• NightAuthor@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    6
    ·
    1 year ago

    Pressing tab and having the appropriate number of spaces added is objectively the only right answer.

    • ClemaX@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      But you can set a tab width instead so any developer editing the code can adjust the indentation width to his liking, without changing the actual files contents and having to worry about setting the editor up to insert the right amount of spaces.