I would like for a "standard" editorconfig file for many projects that have different files.
I want by default to have indent_style = space and indent_size = 4 for all files, except for a couple, most notably makefiles, that are broken if TAB is not used. But I don't want to override the tab width for the makefiles, I want to use the user's default (as the beauty of using tabs is anyone can configure their editor to show as many spaces as they like for a tab).
indent_style = space
indent_size = 4
The problem is if I include the indent_size = 4 in [*] I get the default tab_width = 4 too and there is no way to say for example tab_width = undefined.
tab_width = 4
tab_width = undefined
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I've always felt it strange that the tab_width setting would pull from the indent_size for this very reason. Definitely a discussion to be had here.
If you set tab_width to be none or anything else undefined, it should be ignored by the plugins.
Mmm, I'll try it, but I didn't see that mentioned anywhere...
OK, using tab_width = none works, maybe it should be documented somewhere?
tab_width = none