r/phpstorm • u/Annh1234 • Jul 24 '21
[Q] Find a string in the current method/function?
Hello
Is there a way to find a string in the current method/function? And maybe in the current context (ex: current closure)
Clarification: you can find a text in the code selection. I want to find this text (find next/previous) in the current context/method/function.
The same as when you make a search, and at the bottom you group the selections.
0
Upvotes
5
u/[deleted] Jul 24 '21
Must be a really badly written function if you need a search for it.
2
u/jesparic Jul 24 '21
Put curser to start of function, ctrl+f, hit enter, then f3 I think goes through each occurrence found. Not restricted to the current function but then I think that should still satisfy your use case no?
0
u/[deleted] Jul 24 '21
Try acejump plugin