DEV Community

Discussion on: 4 Spaces or 2?

Collapse
 
terabytetiger profile image
Tyler V.

My preference for 4 spaces comes from starting out with Python.

Since starting to use Prettier in VS Code, I've been having issues with the setting being changed to 4 spaces in the interaction with the Rainbow Indent extension, and as such have been moving to using 2 space instead.

I don't think either is "more readable" than the other. When there's a bunch of indent widths, even the rainbow indent/bracket colorizer isn't enough to stop me from needing to use my finger/piece of paper to figure out where the matching curly brace is/should be.