How to write my own search filter to rip R.java files?

I am trying to create a custom search ร  la How do I exclude a file extension from an IntelliJ IDEA search? in Android Studio. Why doesn't the following template exclude R.java files?

Search for "file: *. Java" yielding 1,192 results from 5,256 possibleSearch for "file: *. Java &&! File: R.java" yielding 1,192 results from 5,256 possible

Note that the second uses &&!file:R.java , but the area does not contain less files.

+1
intellij-idea android-studio file-search
Apr 16 '15 at 18:03
source share
1 answer

The problem is that you need to consider the file path. !file:R.java only looks for R.java in the root. To search all R.Java files, you must use !file:*/R.java :

Search for "file: *. Java" yielding 1,203 results from 5,304 possibleSearch for "file: *. Java &&! File: * / R.java" yielding 1,163 results from 5,304 possible

Note that the second uses &&!file:*/R.java , and the area contains fewer files.

0
Jun 02 '15 at 18:10
source share



All Articles