Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: limit Find in Path scope to files tracked in VCS

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?

like image 265
Gids Avatar asked Mar 22 '17 11:03

Gids


Video Answer


1 Answers

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'

like image 124
Gids Avatar answered Oct 14 '22 17:10

Gids