Tabs vs Spaces

Please put any suggestions for pros or cons or weight changes in the comments below!

  • 63%
    reasonable
    5 3 Tabs vs Spaces: Should programmers standardize on tabs to indent their code?
    8 more










    qG6YSSRsy0Hq
    add
    add
    edit
    • 1
      weight
      0 1 MONEY - Developers Who Use Spaces Make More Money Than Those Who Use Tabs by David Robinson on Stackoverflow blog June 15, 2017
      0 more










      qGc2hr6lj5IJ
      add
      add
      edit
      • 1
        weight
        0 1 POPULARTY - In 400,000 GitHub repositories, 1 billion files, 14 terabytes of code spaces were found to be more popular. 400,000 GitHub repositories, 1 billion files, 14 terabytes of code: Spaces or Tabs? Felipe Hoffa
        0 more










        qGc1iPJpPmHW
        add
        add
        edit
        • 1
          weight
          1 0 KEYSTROKES - Even if your editor converts you tab key into multiple spaces it takes more keys to navigate the indention when using a keyboard.
          0 more










          qGc0khbmeeXv
          add
          add
          edit
          • 1
            weight
            1 0 COMPACT - a tab characters takes less space to represent in a file than multiple spaces.
            0 more










            qGbXRVllNMd8
            add
            add
            edit
            • 1
              weight
              1 0 ERRORS - It's impossible to half-indent something with tabs. So when you copy code from some website that used 3 spaces into your 4-space indented file, you don't have to deal with misalignment. https://softwareengineering.stackexchange.com/a/72/38705
              0 more










              qG70z8l8A688
              add
              add
              edit
              • 1
                weight
                1 0 CUSTOM - Tabs allow developers with different preferences in indentation size to change how it's the code looks without changing the code (separation of data and presentation for the proverbial win!) https://softwareengineering.stackexchange.com/a/72/38705
                0 more










                qG70eRpqa2fB
                add
                add
                edit
                • 1
                  weight
                  1 0 Definition - Tab is a character specifically meant for indentation https://softwareengineering.stackexchange.com/a/72/38705
                  0 more










                  qG6ZUvsOw8nR
                  add
                  add
                  edit
                  • 1
                    weight
                    0 1 A tab could be a different number of columns depending on your environment, but a space is always one column. https://softwareengineering.stackexchange.com/a/66/38705
                    0 more










                    qG6ZzWMyVLbu
                    add
                    add
                    edit
                  • ⚙

                    Comment

                    Your email address will not be published.