Spaces vs tabs: It's an accessibility issue
I never got involved in spaces vs tabs debates throughout my career. But the topic has popped up recently and I took notice of something that I have missed for many years: spaces have been an accessibility issue for many developers. For the visually impaired, spaces are hard to read. Tabs give developers the control and flexibility of the spacing to suit their needs.
Good reads
- Rich Harris pushed for GitHub to change their tab width size in PR #170.
- Prettier is considering making tabs the default in 3.0. Mentioned in Issue #7475.
- MarcoSehe comments on PR #170 the impact that spaces have on Braille displays.
- Nobody talks about the real reason to use Tabs over Spaces
What I learned
- Developers who are visually impaired can change the tab width to a size that is comfortable on their eyes.
- If you prefer spaces, you can set the tab width to
2
. - You can change the tab width in GitHub by using the
?ts=
query. - You can change the tab size in GitHub globally in the Appearance settings page.