Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Every editor, or at least every good editor for programmers, can convert 4 (or whatever) spaces to tabs. If it bothers you that much, you can set up your editor so that it tabifies files when opening them and untabifies when saving. This way you won't even know if the file used spaces or tabs - and that's how it should be.

In short: configure your editor to display to your tastes and save to whatever style guide you use in your organization. Problem solved.



You might be shocked by how many editors can't convert indentation spaces to tabs.

You might also be surprised by how many source files with indentation spaces have off-by-one indentation errors.


> You might also be surprised by how many source files with indentation spaces have off-by-one indentation errors.

I will add that to my list of arguments against using spaces for indentation. It is so true.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: