suggestion about search everywhere


I use Git to manage my code in idea. How do I search for strings in all branch codes? At present, I haven't found relevant functions in idea. Will idea develop this function in the new version?


for example:

My code has three branches, namely master, dev, and test.

Line 5 of the file in the master branch has the quotationHelper string. file in dev branch has quotationHelper string on line 10.

None of the files in the test branch have the quotationHelper string.


Now, when I type quotationHelper to search, then I want to get the result:

master: src/main/java/ 5 line

dev: src/main/java/ 10 line


Here is my question link:


I found git related commands:

git grep -n "SearchWord" $(git for-each-ref --format='%(refname)' refs/remotes)


It is able to search keywords in files of all remote branches, it really works, I tried it.

You can view the specific operation on stackoverflow through the following two links:


The problem now is that idea does not currently integrate such a function, so I hope that idea developers can consider integrating this function into idea in the future, which will make it more convenient for all people who use idea.

1 comment

Thank you for contacting JetBrains Support.

I have assgined your request to our Product Manager.
There is indeed no such feature, but thank you for filing a feature request

Please let me know if you have any questions.

Please sign in to leave a comment.