Find and replace Android studio

android, android-studio, refactoring, rename

Solution

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

Problem

Is there a way to find and replace all occurrences of a word in an entire project (not just a single class using refactor -> rename) and also maintain case, either in Android Studio or using a command line script? For example, Supplier has to go to Merchant, supplier -> merchant, SUPPLIER -> MERCHANT. My boss wants me to change all instances of supplier with merchant for a project I'm working on. I've been doing it for about an hour and I know I'm wasting my time. Let me know of any time-saving suggestions.

Original source