Ask Your Question
3

When searching in Android Studio for a project, how can I exclude subdirectories with a particular name (along with their contents)?

asked 2023-06-19 06:37:37 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-19 06:53:02 +0000

nofretete gravatar image

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.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-19 06:37:37 +0000

Seen: 15 times

Last updated: Jun 19 '23