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.

Archived Comments

Comment 1 by James Edmunds posted on 1/28/2012 at 4:04 AM

Yikes, that is simple but good, good, good, thanks to you both!

Comment 2 by Mikel posted on 1/28/2012 at 4:04 AM

Oh, this will come in very handy! Thanks!