Proposal: Can we standardize the codebase to use tabs instead of spaces?
HanzCEO opened this issue · 2 comments
Good morning, I'm back,
I have seen many inconsistencies within our code base (especially the page/
directory) and I want to propose a solution. Can we standardize the tab size to be equivalent as 4 spaces?
Any feedback is appreciated.
Regards,
Hanz
https://editorconfig.org/ can be a good option for this, e.g.:
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true
...
Regarding the ancient tabs vs spaces debate, I recommend reading this: https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/
(Open Source projects usually consider the accessibility angle.)
Regarding the ancient tabs vs spaces debate, I recommend reading this: https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/ (Open Source projects usually consider the accessibility angle.)
Thank you for the insights. I might not form my sentence properly, but I usually use tabs instead of spaces. I just thought that everyone contributing here use spaces, so I try to conform to the culture.