Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can exclude subdirectories with a particular name (along with their contents) by following these steps:

  1. In the Android Studio search bar, type the name of the project you want to search.
  2. When the search results appear, click on the dropdown arrow next to the search bar.
  3. Select "Edit search scope" from the dropdown menu.
  4. In the "Scope" window that appears, click on the "+" button to add a new scope.
  5. Give your new scope a name (e.g. "Search without subdirectory").
  6. In the "Scope Options" section, click on the "Add" button.
  7. On the "File Path" tab, select "Does not match" in the first dropdown.
  8. In the second field, type the path to the subdirectory you want to exclude. For example, if your subdirectory is named "build", you should type "/build/" (without the quotes).
  9. Click on "OK" to save your new scope.
  10. Back in the search bar dropdown menu, select your new scope from the list of search scopes.
  11. Your search results will now exclude the subdirectory you specified.