[英]How can I exclude all build files in quick file search at Android Studio?
When I used Command+Shift+O search file in my AndroidStudio for Mac.The result will has too many unnecessary files like in "build" folder. 当我在AndroidStudio for Mac中使用Command + Shift + O搜索文件时。结果将包含太多不必要的文件,例如“build”文件夹。 I've never seen before until recently.How can I exclude these?
我直到最近才见过。如何排除这些?
Android Studio (like its progenitor IntelliJ) allows you to define a custom scope to help you exclude intermediates files when searching.
Android Studio(与其祖先IntelliJ一样)允许您定义自定义范围,以帮助您在搜索时排除中间文件。
Here are the steps I use to set this up:
以下是我用来设置它的步骤:
- Bring up Find in Path dialog (Ctrl+Shift+F on my machine).
打开“在路径中查找”对话框(在我的机器上按Ctrl + Shift + F)。
- 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.
这将打开“范围”对话框。
- Click the "+" button on the left side of the Scopes dialog, which will bring up the Add New Scope dialog.
单击“范围”对话框左侧的“+”按钮,将显示“添加新范围”对话框。 Name it "ExcludeIntermediates".
将其命名为“ExcludeIntermediates”。
In the Pattern field, paste in the following pattern and click OK:
在Pattern字段中,粘贴以下模式,然后单击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.
此模式不包括R.java文件和其他中间元素,例如在filtered_manifests文件夹中的explosion-aar和AndroidManifest.xml副本中的布局文件。
https://stackoverflow.com/a/32238593/1815624
https://stackoverflow.com/a/32238593/1815624
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.