Skip to content

Instantly share code, notes, and snippets.

@idettman
Created March 23, 2018 18:29
Show Gist options
  • Save idettman/dc015e5eea6d1650e80147b3ed779a2d to your computer and use it in GitHub Desktop.
Save idettman/dc015e5eea6d1650e80147b3ed779a2d to your computer and use it in GitHub Desktop.
intellij-scopes

IntelliJ - Scopes usage

file -> settings -> general -> scopes

expressions

  • file\[MyMod\]:src/main/java/com/example/my_package//* include in a project all the files from module "MyMod", located in the specified directory and all subdirectories.

  • src\[MyMod\]:com.example.my_package..* recursively include all classes in a package in the source directories of the module.

  • lib:com.company..*||com.company..* recursively include all classes in a package from both project and libraries.

  • test:com.company.* include all test classes in a package, but not in subpackages.

  • \[MyMod\]:com.company.util.* include all classes and test classes in the package of the specified module.

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment