是否可以从.editorconfig中忽略/排除文件/文件夹?
原因:我有一个/vendor
包含第三方文件的文件夹。我不希望该文件夹继承我的任何.editorconfig
配置。
我找到了EditorConfig-Properties页面,似乎没有排除文件夹的属性。也许有黑客使之成为可能?
当前配置
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
忽略/vendor
文件夹的另一种解决方案:
unset
为您要忽略的属性例如,如果您有:
您可以匹配vendor
目录中的所有文件,.editorconfig
并忽略所有属性(设置为IDE的默认设置):
# top-most EditorConfig file
root = true
# Ignore paths
[/vendor/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句