Global search: List each file only once
I often do global search when working on code that someone else wrote to find in which files things are.
For this purpose, I don't care if the string occurs once or 100 times in a file, I just want the file names.
However, PHPStorm shows max 100 results and if 1 file has the string 100 times, this same file will take up 100 lines in the search results, blocking out other files from showing.
This is not very useful. I couldn't find an option such as "list each file only once".
Does this option exist?
I could do a recursive grep on the terminal for the same purpose, but I would really like if this was part of PHPStorm.
Please sign in to leave a comment.
Hi there,
Yes and No.
No -- there is no such dedicated option.
But yes -- you can collapse all results and then expand so you will see only list of files
In the end you can have something like this: