Same, and I also used to indent with a width of 4 or more, but currently I'm using a width of 2, just because of personal preferences. No changes to the source code required, just a simple setting in the IDE/Text Editor and that's it - as it should be
Of course an IDE can reindent your code, but that would change every line of the file unnecessary. Unless you're talking about virtually hiding certain spaces. But either way, that leads to a larger problem:
How can the IDE tell the difference between the spaces used for an indent from the additional leading spaces on that same line used for lining things up neatly?
The proper solution is to use tabs for indenting, then additional spaces for alignment of multi-line lines of code. Then people can set their preferred tab stop in their settings and everything just works.
I think you're missing the whole point. People are saying they want an indent to look a certain width. If you change to a narrower font that indent will also look narrower. So if tabs are used instead, when they switch to a narrower font they can increase the tab width to keep indents looking the same because maybe that helps them understand the code at a glance easier.
9
u/[deleted] Apr 14 '21
I use a tabstop of 4 or 6 depending on my font.
It's like people don't even consider that not every monospace font has the same width.