Is it possible to ignore/exclude file/folder from .editorconfig?
Reason: I have a /vendor
folder with third party files. I don't want the folder to inherit any of my .editorconfig
configs.
I found the EditorConfig-Properties page and seems like there's no property to exclude folders. Maybe there's a hack to make it possible?
current config
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
Another solution to ignore /vendor
folder:
unset
to property you want to ignoreFor example, if you have:
You can match all files in the vendor
directory in your .editorconfig
and ignore all properties (set to IDE's default):
# 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