-
Couldn't load subscription status.
- Fork 13
Glob Patterns
David Lechner edited this page Oct 23, 2017
·
2 revisions
Glob patterns are a type of wildcard matching for file names. They are used frequently in Visual Studio Code, including in some of the settings for this extension.
-
*matches anything (0 or more characters) except for the directory separator -
**matches anything (0 or more characters) including the directory separator -
?matches a single character -
{abc,def}is used to create a list of matching patterns (this will matchabcanddef) -
[Aa]matches one of a list of characters (this will matchAanda) -
[a-z]matches a range of characters (this will match any lower case letter)
To match all Python files, all PNG files and all WAV files, including those in any subdirectory:
{**/*.py,**/*.png,**/*.wav}
To include all files in the src directory:
src/**