Different text readers/editors have different interpretations of Tab. A program that originally looked great in your editor would appear messy elsewhere. Therefore, many programmers tend to use space-only for guaranteed visual look, but that will cause a lot of waste of disk space. Is there an ideal solution?
There IS!
We can enforce a rule to all program files:
In each line, before the first non-space, non-tab character, use TAB only! And after that character, use SPACE only!
The advantage of this rule is that, first of all, regardless of how many spaces the tab's interpretation is, the code is always uniformly indented, and since tabs and spaces do not mix together, the appearance of the code line is fixed. Secondly, compared to the all-space solution, it can reduce file size dramatically. I consider this to be the perfect solution. And our Tabspace project just does this job.
Features
- Batch processing: Beautifies thousands of your files with a single command
- Universal: Suitable for all programming languages
- Efficiency: Reduces your file size after beautifying