gpt4 book ai didi

android - 在Android Studio中搜索文本时如何排除自动生成代码?

转载 作者:行者123 更新时间:2023-12-04 14:11:56 24 4
gpt4 key购买 nike

我在Android Studio中搜索文字,可以看到图片A

我发现搜索结果包含自动生成的代码,例如 LayoutHomeBindingImpl

我希望从自动生成代码中排除搜索结果,我该怎么做?

图A

enter image description here

最佳答案

按照以下步骤直接实现目标:

1.Ctrl + Shift + F 打开在路径中查找 窗口,然后转到 Scope 选项卡:

enter image description here

2. 单击... 选项按钮:

enter image description here

3. 点击 + 然后点击 Local 添加新范围:

enter image description here

4.为其选择一个名称并按OK:

enter image description here

5.Pattern框中,输入!file:*/generated//*,然后按ApplyOK:

enter image description here

6. 现在,Find in Path 的结果中排除了所有生成的源代码:

enter image description here

关于android - 在Android Studio中搜索文本时如何排除自动生成代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63642492/

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