I don’t know if anyone else would agree with me, but I’m ultimately frustrated by indentation and tab width being treated as “coding style”, when to be perfectly honest, it’s an encoding issue.
If a project prefers files to be saved such that indentation takes the form of 2 spaces, then that’s fine. If another project prefers files to be saved such that indentation is a single tab, that’s also fine. But I want that indentation to display, for all projects, to my preference, and that is a single tab that is 4 spaces width.
I’ve not seen ANY editor do this yet, and maybe there is one I don’t know of. But it would be absolutely great if Atom IO could distinguish between encoding and display preference. Much like I can choose syntax highlighting, font style and inline suggestions etc. we should be able to choose how indentation is displayed, without it affecting the way the file is encoded. If my colleagues want font size 72, yellow, bold and indentation size of 4, I would rather not
What are people’s thoughts on this?
Feature wise, it would likely mean the Settings only has an “indentation width” - and then separate settings for default encoding as “indentation encoding: tab/spaces” “indentation encoding spaces: 2/4”. These can then be changeable in the status bar for specific files - maybe stored in extended attributes etc. It could be up to plugins to then detect what the encoding should be. But ultimately, to me, it would display my way.