Search in files with wildcards in sublime

2019-02-02 03:42发布

问题:

In the sublime text editor, how do you search recursively in a directory for only certain file types? E.g. in a directory for all *.cc and *.h files?

回答1:

Specify the path in the Find 'Where' field and wildcards after the path seperated by commas.

e.g. /path/to/search,*.cc,*.h



回答2:

You can also exclude file-types with the minus '-' character: /path/,-*.xml