DEV Community

Discussion on: Tabs vs Spaces

Collapse
 
buphmin profile image
buphmin

I don't care xD. Really as long as it is consistent across the code base per language. At my work we use 4 spaces officially, but there is some old code that is all over.

For most languages I prefer the look of 4 spaces with the exception of js/ts I like the look of 2 since js has a lot of nesting. By look I mean the typical width of 4 spaces, I don't care whether it is a tab or a space, as long as pushing the tab button works.