Find and Replace symbol for whole project intellij?

78,002

Solution 1

EDIT:

Here is the Visual representation for better understanding.

Replacing a piece of text in all the files within the specified path do one of the following:

  • On the main menu, choose Edit | Find | Replace in Path
  • Press Ctrl + Shift + R

You can try Ctrl + Shift + F.

And if you are using Eclipse keymap for IntelliJ then you can use Ctrl + H.

Solution 2

Windows/Linux Shortcut

CTRLSHIFTR

MacOS Shortcut

R

Common Shortcut

Press SHIFT twice and type Replace in Path

You get an option to apply file mask, scope, etc.

Solution 3

For me, worked:

Ctrl + H - To replace all occurrences in a specific file

Ctrl + Shift + H - To replace all occurrences in all files

But I remember I have configured my key map in VSCode style. Also, I am working on Ubuntu 20.04.2 LTS, but it looks unrelated.

Share:
78,002
Supun Wijerathne
Author by

Supun Wijerathne

Top 5% in Java Intellij-Idea Design-Patterns Top 10% in Multithreading Play-Framework Json Map-Reduce Hadoop Top 20% in Concurrency Interested in Spring Java8 Java-Streams Architecture Microservices REST Akka Bigdata Nosql Distributed Git Find me on LinkedIn, Blog, Facebook. Email: [email protected].

Updated on April 01, 2021

Comments

  • Supun Wijerathne
    Supun Wijerathne about 3 years

    In IntelliJ IDEA, is there an option to find and replace a symbol for whole project with on time operation?

  • Supun Wijerathne
    Supun Wijerathne almost 8 years
    For my question it should be Ctrl+Shift+R right? :))
  • Paulo Merson
    Paulo Merson over 5 years
    Ctrl+Shift+R is the answer. Then you click Replace in the Replace in Path dialog box. But here's the bizarre thing: nothing gets replaced! The dialog box closes and a window opens at the bottom part of the screen showing occurrences. Then you need to click the Replace All button in that window. Then a new dialog box pops up where you need to click the Replace button yet again. Inefficient UI, poor Ux.
  • maxshuty
    maxshuty about 4 years
    cmd+r for Mac users
  • Tadej
    Tadej over 3 years
    ctrl+shift+h here using the vscode keymap