I would like to search my whole project directory in IntelliJ but limit the scope to files tracked in VCS.
i.e. the same results I would get by performing git grep
I see there is a custom scope under Find In Path -> Scope -> VCS Scopes -> Default
however this appears to exclude some files which are tracked in VCS. Is there another option or custom scope setting which can provide this?
As I cannot currently do exactly what I want (Only search files tracked in VCS) I found a workaround by manually marking the folders I want to exclude.
i.e.
Right click on transpiled target folder and 'Mark Directory as -> Generated Sources Root'
Now when you 'Find in Path' the unwanted matches will be hidden under 'Usages in generated code'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With