Android Studio.

Search: Find in Path

How to exclude files of type R.java from search?

    2 answers 2

    In addition to the answer above, you can use the quick filter by mask:

    scrn

    Mark File mask: and write a mask - ! R.java - exclude R.java from search

    For fast input, autocomplete works:

    scrn

    • Pavlofff! Thank! This decision teaches a lot! ) - user_MGU
    • And you can exclude two types of files like this:! R.java &&! *. Mp3? - user_MGU
    • one
      separated by commas !R.java, !*.mp3 - pavlofff
    • Pavlofff! Thank you so much! God grant you health! - user_MGU

    You can create your own search area as follows.

    1. File | Settings | Appearance and Behavior | Scopes File | Settings | Appearance and Behavior | Scopes for Windows and Linux

      IntelliJ IDEA | Preferences | Appearance and Behavior | Scopes IntelliJ IDEA | Preferences | Appearance and Behavior | Scopes for macOS

    2. Select + (add region) (local | shared)

    3. In the Name field, enter the name of the region, for example, NotRjava
    4. In the pattern field, enter !file:*/R.java
    5. Click OK
    6. Ctrl+Shift+F with the scope option select NotRjava from the drop-down list NotRjava

    https://www.jetbrains.com/help/idea/scopes.html

    • TimurVI! Thank you! ... But go nuts! Such a simple (and obvious, popular) exception ... and such incredible bells and whistles have to be done! ... A raw studio is still quite! ) Raw ... - user_MGU
    • 3
      @user you can always use alternative development environments and fully feel their "dry". But seriously, if you suddenly need something, it does not mean at all that it is necessary for everyone and without it the product is raw - if you take into account everyone's wishes, then you will not be able to use the “dry” product. That is why everyone can customize themselves in just a few mouse clicks. - pavlofff