Can you restrict search to current file?
Hi all!
The search everywhere function is really great in Rider but I have a little trouble searching through only the current file. I hope I'm missing something but is there an easy way to search for methods within the current script?
Everything I try seems to give me results from the whole project.
Thanks,
Pete
Please sign in to leave a comment.
Hi Pete!
You can use Ctrl+F (Edit -> Find -> Find) to search within the current script. If you are looking for something else - let me know.
Hey Thanks Kirill,
That search seems really basic compared to the “search everywhere” version though. For example you don’t seem to be able to only search for methods, it just looks for an exact match of the text you’ve typed.
The search everywhere option is really useful in this way, I was just looking for a way to use that functionality, but limit it to the current script.
Hey Pete,
Thanks for describing your case. "Search Everywhere" has an "Open Files" filter that should help you limit the scope of the search. If you find this too broad/inconvenient and want the search to be strictly limited to a single file, please upvote this feature request.
Thanks Kirill,
I'll have a look.
P.