Android Studio : Exclude files in build folder from search result

后端 未结 6 2600
忘掉有多难
忘掉有多难 2020-12-13 05:34

I have an Android Studio project in which I have multiple modules, each of those module depending on a share module. And let\'s say that this share module has an xml file ca

6条回答
  •  无人及你
    2020-12-13 06:10

    To exclude all build folders from all modules use this pattern:

    !file:*build*/
    

    If you want exclude also all libraries, simply use this pattern:

    !file:*build*/&&!lib:*..*
    

    Detailed description:

    1. In the Find window click on the Scope tab, then on three dots button:

    1. Plus button -> Local -> Enter name

    1. Add the desired pattern:

    1. Save and enjoy!

提交回复
热议问题