DEV Community

Discussion on: Why we should default to Tabs instead of Spaces for an 'accessible first' environment

Collapse
 
alexandersandberg profile image
Alexander Sandberg

What's your current preference for indentation? Tabs or Spaces?

Would you consider switching to Tabs after learning this? πŸ™‚

Collapse
 
voidjuneau profile image
Juneau Lim • Edited

Wow, I have never think about this issue at all. Thank you for enlighting me.

Used to use 4 spaces, however, I am going to figure out how I can set up my working environment.

Collapse
 
alexandersandberg profile image
Alexander Sandberg

Thank you for sharing, Juneau!

I was a tabs-dev for so long until I decided to try out 2 spaces instead, a few months ago. I didn't really think much of it until I came across Chase's post. Now I'm all for tabs again! πŸ™Œ

Collapse
 
ximias profile image
Alex Holberg

I don't really care. I hit my tab button on my keyboard for indentation, and the IDE takes care of the rest regardless of indentation character.
Come to think of it, I usually just hit my enter key, and the indentation is already made for me :D

Knowing this, I might start advocating tabs in the future, though.

Collapse
 
alexandersandberg profile image
Alexander Sandberg

Yes! The Enter key is often taking care of everything anyway!

If you don't really have a preference, all the amazing developers out there in need of customizable tab-widths will thank you for choosing tabs. ☺️