3 ms·
The correct answer to the "tabs vs spaces" debate is tabs for indentation, spaces for alignment. This allows people to use any tab width they want and it will
by Sohcahtoa82 3y ago
The correct answer to the "tabs vs spaces" debate is tabs for indentation, spaces for alignment. This allows people to use any tab width they want and it will always look good.
However, in the real world, attempting this won't work because there will be a minimum of 1 person in the team that configures their editor to convert tabs to spaces.
Ideally, that person should have their PRs rejected and be scolded into fixing their editor. But the real result ends up just forcing everyone to use spaces.
- teddyh 3y agoNo, the actual perfect solution is Elastic Tabstops: <https://nickgravgaard.com/elastic-tabstops/ https://nickgravgaard.com/elastic-tabstops/>
- yencabulator 3y ago> The correct answer to the "tabs vs spaces" debate is tabs for indentation, spaces for alignment. I for one would like to live in an era where we move beyond monospace text.