IntelliJ IDEA 12.1.0 Web Help

The scopes language syntax enables you to specify project scopes involved in dependency analysis.

Sets of classes

  • Single class set is defined by a class name, i.e. com.intellij.OpenApi.MyClass.
  • Set of all classes in a package, not recursing into subpackages, is defined by an asterisk after dot, for example: com.intellij.OpenApi.*.
  • Set of all classes in a package including contents of subpackages, is defined by an asterisk after double dot, for example com.intellij.OpenApi..*

Modifiers

Location modifiers
help you specify whether the desired set is located in the source files, library classes or test code in the form of location modifiers src:, lib:, file:, or test:. For example, the following scope src:com. intellij.OpenApi.* implies all classes under the source root in the com.intellij.OpenApipackage, excluding subpackages.
Module modifiers
help you narrow down the scope by specifying the name of the related module in one of the following ways:
src[module name]:<E>
lib[module name]:<E>
test[module name]:<E>
For example, the following scope src[MyJavaModule]:com.intellij.OpenApi.* implies all classes under the source folders related to the module MyJavaModule in the package com.intellij.OpenApi excluding subpackages.

Logical operators

The language allows you to use common logical operators like AND (&&), OR (||) and NOT (!).

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.

See Also

Procedures:

Reference:

Web Resources: