Tabs or Spaces? What width/how many?


(Arinerron) #1

Okay, this deserves its own post.

  • Tabs
  • Spaces
  • A mixture (comment with details for each language, please :stuck_out_tongue: )

0 voters

And what width/how many?

  • 1
  • 2
  • 4
  • 6
  • 8
  • 16

0 voters

(Miguel Piedrafita) #2

For me, tabs when doing OOP and spaces when doing HTML or JS (mainly Vue templates).

(William Oldham) #3

I use 4 spaces for everything I do because I don’t use languages like Python which are fussy when it comes to that.

(Roger Stach) #4

Equaling tabs to 4 is like equaling pi to 3, it’s just not right. Tabs is 8.

(Miguel Piedrafita) #5

Side note: In my school, they make us equal pi to 4 and g (gravity on earth) to 10… :man_facepalming:

(William Oldham) #6

Gravity to 10 I can understand. Pi to 4??? It’s 3.14… It doesn’t even round to 4…

(Benjamin Philippe) #7

Eight space tabs are monstrous and should be declared illegal for being longer than necessary.