DEV Community

Discussion on: The Tab Advantage

Collapse
 
auroratide profile image
Timothy Foster • Edited

your editor should be able to switch between spaces and tabs

Or more simple, your editor lets you set how large a tab is ( : I have mine set to 3, because 2 felt too small and 4 was too large.

I suppose the distinction matters if people use the Space key instead of the Tab key to indent code, though even when I was using spaces I always used the Tab key to indent.

Collapse
 
moopet profile image
Ben Sinclair

Thinking about it I very rarely use anything to indent manually. The editor does it for me and if I want to shift the indentation of a block I'll use something different there as well.

Thread Thread
 
auroratide profile image
Timothy Foster

Ah, I just remembered a formatter like Prettier would automatically take care of all that, and I don't have that on every project which is why I still manually indent every once in a while.

You're right, the editor takes care of most of it. I mostly find myself adjusting things when either copying and pasting or dealing with multi-line strings.