How to search for text in entire IntelliJ project?

Viewed 282

I'm looking to replace every instance of a variable in my IntelliJ project. I know that it is present in quite a few files within the project, but I can't find a way to find them all. Is the some way to search for a variable in all of the files I have at once? I am on Windows.

2 Answers

ctrl+shift+f to open a modal to search all file contents. Then press ctrl+shift+R to open up the replace dialog.

Call Refactor | Rename action while the cursor is on the variable. IntelliJ IDEA will do the rest.

Related