gpt4 book ai didi

android-studio - 如何在Android Studio的快速文件搜索中排除所有构建文件?

转载 作者:行者123 更新时间:2023-12-03 15:55:34 24 4
gpt4 key购买 nike

在Mac版AndroidStudio中使用Command + Shift + O搜索文件时,结果将包含过多的不必要文件,例如“build”文件夹中的文件。直到最近我才见过。如何排除这些?
enter image description here

最佳答案

Android Studio (like its progenitor IntelliJ) allows you to define a custom scope to help you exclude intermediates files when searching.

Screenshot selecting custom option from scope]1

Here are the steps I use to set this up:

  1. Bring up Find in Path dialog (Ctrl+Shift+F on my machine).
  2. In the Scope area, select the Custom radio button. Then tap the "..." button on the right side of the dropdown. This brings up the Scopes dialog.
  3. Click the "+" button on the left side of the Scopes dialog, which will bring up the Add New Scope dialog. Name it "ExcludeIntermediates".
  4. In the Pattern field, paste in the following pattern and click OK:

    !file:*intermediates*/&&!file:*generated*/

This pattern excludes R.java files and other intermediates such as layout files in exploded-aar and AndroidManifest.xml copies in filtered_manifests folders.

https://stackoverflow.com/a/32238593/1815624

关于android-studio - 如何在Android Studio的快速文件搜索中排除所有构建文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36323112/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com