Search code examples
editorconfig

what's the difference between [*] and [**] in EditorConfig file


the doc states:

[*] Matches any string of characters, except path separators (/)

[**] Matches any string of characters

However,the cases below take effect in both current root path and subdirectory. So what's the difference between [*] and [**] in EditorConfig file?

[*]
indent_style = space
indent_size = 2

and

[**]
indent_style = space
indent_size = 2

Solution

  • * Matches any string of characters, except path separators (/)

    ** Matches any string of characters

    Be sure to read the documentation