Peter Mekhaeil

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

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.