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?
My code has three branches, namely master, dev, and test.
Line 5 of the ArInvoiceBillImportHelper.java file in the master branch has the quotationHelper string.
ArInvoiceBillImportHelper.java 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/ArInvoiceBillImportHelper.java 5 line
dev: src/main/java/ArInvoiceBillImportHelper.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.