Searching across all resources in Chrome

Thanks for this goes to Paul Irish. For a while now I’ve been trying to find a way to search for a value across multiple files that are loaded in a browser request. But every time I used the Search field in Chrome Dev tools, it would only search the current file. I’m talking about the highlighted search field below:

Yes - I know - my MSPaint skills suck. ;) As I said, that only searches the current file. If there are a bunch of JavaScript files in one request, you’re screwed unless you feel like manually switching from one to another.

But it turns out there’s another search form you can open with ctrl-shift-f (cmd-opt-f on OSX):

Not only will it search across all files (not just JavaScript), it supports case sensitivity and regex based searches as well.

Anyway - thanks again to Paul for sharing the tip and I hope it helps others.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate looking for his next gig. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments