Skip to content

Instantly share code, notes, and snippets.

@kosiara
Created October 23, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosiara/eec35300b92d8a3e92a9 to your computer and use it in GitHub Desktop.
Save kosiara/eec35300b92d8a3e92a9 to your computer and use it in GitHub Desktop.
Android Studio/ IntelliJ custom search scope without R.java classes with usual *.xml files from an Android project
Edit->Find->Find in path
Custom -> ... -> Add scope
search pattern:
file:*java&&!file:*R.java*&&!file:*_.java||file:*strings.xml||file:*dimes.xml||file:*styles.xml||file:*attrs.xml||file:*colors.xml||file:*layout/*xml&&!file:*build/*xml
<component name="DependencyValidationManager"><scope name="PekaJavaWithoutRWithStrings" pattern="file:*java&&!file:*R.java*&&!file:*_.java||file:*strings.xml||file:*dimes.xml||file:*styles.xml||file:*attrs.xml||file:*colors.xml||file:*layout/*xml&&!file:*build/*xml"/></component>
@GrishinSergey
Copy link

how to import (or create own) scope in android studio. v3.2.1?

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