An increasing number of text editors support EditorConfig which is a simple config text file placed at the root of a folder that will affect things such as tab width, tabs vs. spaces, etc. on a per-project (or per-folder) basis.
This is useful because one might have personal projects, professional projects, open source, etc. that each have their own coding standards and it's not practical to have to remember and manually change settings whenever switching, and especially to expect the global defaults that the user sets be able to encompass all the text editing they do.
Customer support service by UserEcho