Find and replace Android studio
I think the shortcut that you're looking for is:
Ctrl+Shift+R on Windows and Linux/Ubuntu
Control+Shift+R on macOS (IntelliJ IDEA Classic keymap)
Cmd+Shift+R on macOS (macOS keymap)
ref: source
In Android studio, Edit -- > Find --> Replace in path, this will check in whole project including comments and code.
On Windows:
Find : Ctrl+F
Find And Replace In Single Class: Ctrl+R
Find And Replace In Whole Project: Ctrl+Shift+R
on OS X ,it is similar, just replace Ctrl with Command