Yes, but then how many different editors are people using? What about VSCode? SublimeText? Etc. you’re just trading one problem for another.
These days .editorconfig compliance is everywhere, thankfully, so there's a cross-platform solution. At least for that bit. (Note that while usually "cross-platform" means OS's, this time it means editors).