suggestion about search everywhere
https://youtrack.jetbrains.com/issue/IDEA-315207
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 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:
https://intellij-support.jetbrains.com/hc/en-us/requests/4883239
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.
Please sign in to leave a 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.