Check out example codes for "intellij replace all". It will help you in understanding the concepts better.

Code Example 1

// Selects all instances of selected text
CRTL-CMD-G

// You can do this after CMD-F too

Code Example 2

// 1. On the main menu, choose Edit | Find | Replace in Path.
// 2. Press Ctrl + Shift + R.

Learn ReactJs, React Native from akashmittal.com