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.

Billboard image

Use Playwright to test. Use Playwright to monitor.

Join Vercel, CrowdStrike, and thousands of other teams that run end-to-end monitors on Checkly's programmable monitoring platform.

Get started now!

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay