DEV Community

webdeasy.de
webdeasy.de

Posted on β€’ Edited on

1

A difficult decision - Indentation

It's probably a question one has always asked oneself and will probably still ask in 100 years time...

So, I have started a poll on Twitter:

Do you use 2 Whitespaces or 1 Tab (4 Whitespaces) in your code?


(click on the tweet to see the voting)

Which one do you use and why? 😊

Top comments (1)

Collapse
 
nataliedeweerd profile image
𝐍𝐚𝐭𝐚π₯𝐒𝐞 𝐝𝐞 π–πžπžπ«π β€’

I tab, but my tab is set to 4 spaces. It makes it easier for me to spot bugs as the visual indentation is more extreme.

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay