A difficult decision - Indentation

twitter logo ・1 min read

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? 😊

twitter logo DISCUSS (1)
markdown guide

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.

Classic DEV Post from Feb 20

Sharing code examples with Carbon

A free tool to use for creating clean looking images for sharing code examples.

WebDEasy profile image
German Front- & Backend Web Developer. Let us change the world!