The scopes language is used in specifying project scopes involved in various kinds of analysis. Scopes are defined in the Scopes dialog box in the following modes:
-
Manually, by specifying file masks in the Pattern text box. The following elements and structures are used:
- The file: modifier. The element is mandatory.
- The * asterisk to denote any symbol in a file name or file extension.
- Logical operators AND (&&), OR (||), and NOT (!).
- By selecting files and folders and clicking the buttons Include, Include Recursively, Exclude, and Exclude Recursively. Based on the inclusion/exclusion, WebStorm creates an expression and displays it in the Pattern. However, this approach does not allow for including/excluding specific files within folders based on file masks.
Examples:
- file:*.js||file:*.coffee - include all JavaScript and CoffeeScript files.
- file:*js&&!file:*.min.* - include all JavaScript files except those that were generated through minification, which is indicated by the min extension.

