I search text in Android Studio, you can see Image A
I find the search result includes auto-generation code such as LayoutHomeBindingImpl
I hope to exclude search result from auto-generation code, how can I do?
Image 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:
2. Click on ...
options button:
3. Click on +
then Local
to add a new scope:
4. Choose a name for it and press OK
:
5. In Pattern
box, put !file:*/generated//*
, then press Apply
and OK
:
6. Now, all generated source codes are excluded in the result of Find in Path
:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.