“取消设置”实际上未设置哪些EditorConfig属性?

时间:2019-01-09 08:48:03

标签: editorconfig

EditorConfig documentation指出:

  

对于任何属性,值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

它归结为一个问题:“之前设置”到底指的是什么?

0 个答案:

没有答案