[英]How can I exclude auto-generation code when I search text in Android Studio?
I search text in Android Studio, you can see Image A我在 Android Studio 中搜索文本,您可以看到图像 A
I find the search result includes auto-generation code such as LayoutHomeBindingImpl
我发现搜索结果包括自动生成代码,例如LayoutHomeBindingImpl
I hope to exclude search result from auto-generation code, how can I do?我希望从自动生成代码中排除搜索结果,我该怎么做?
Image A图片A
Follow these steps to directly achieve the goal:按照以下步骤直接实现目标:
1. Press Ctrl + Shift + F to open Find in Path
window, then go to Scope
tab: 1.按Ctrl + Shift + F打开Find in Path
窗口,然后转到Scope
选项卡:
2. Click on ...
options button: 2.点击...
选项按钮:
3. Click on +
then Local
to add a new scope: 3.单击+
然后单击Local
添加新范围:
4. Choose a name for it and press OK
: 4.为它选择一个名称,然后按OK
:
5. In Pattern
box, put !file:*/generated//*
, then press Apply
and OK
: 5.在Pattern
框中,输入!file:*/generated//*
,然后按Apply
和OK
:
6. Now, all generated source codes are excluded in the result of Find in Path
: 6.现在,所有生成的源代码都被排除在Find in Path
的结果中:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.