Find and Replace symbol for whole project intellij?

JavaIntellij IdeaReplaceFindIntellij 14

Java Problem Overview


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

Java Solutions


Solution 1 - Java

EDIT:

Here is the https://youtu.be/PREdDtOoh1Q">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 https://confluence.jetbrains.com/display/IntelliJIDEA/Configure+Keymap">Eclipse keymap for IntelliJ then you can use Ctrl + H.

Solution 2 - Java

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 - Java

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSupun WijerathneView Question on Stackoverflow
Solution 1 - JavaShreyos AdikariView Answer on Stackoverflow
Solution 2 - JavaSaikatView Answer on Stackoverflow
Solution 3 - JavaHosana GomesView Answer on Stackoverflow