对于任何属性,值
unset
都会删除该属性的影响,即使该属性之前已设置
在目录层次结构中考虑两个.editorconfig
文件:
A/.editorconfig
A/B/.editorconfig
在indent_style
中的文件被编辑时,在A/B/
中使用编辑器的默认情况是以下两种情况:
Szenario 1
A/.editorconfig => indent_style = tab
A/B/.editorconfig => indent_style = unset
Szenario 2
A/.editorconfig => indent_style = unset
A/B/.editorconfig => indent_style = tab
它归结为一个问题:“之前设置”到底指的是什么?