Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm - how do i find replace a word in my entire project?

Tags:

pycharm

As the question asks, how do i run a find/replace in pycharm for a word over the entire project?

like image 547
bharal Avatar asked Jun 27 '12 13:06

bharal


People also ask

How do I search globally in PyCharm?

Search everywhereFrom the main menu, select Navigate | Search Everywhere or press Shift twice to open the search window. By default, PyCharm displays the list of recent files.

How do I find and replace in all files?

Remove all the files you don't want to edit by selecting them and pressing DEL, then right-click the remaining files and choose Open all. Now go to Search > Replace or press CTRL+H, which will launch the Replace menu. Here you'll find an option to Replace All in All Opened Documents.


3 Answers

Edit | Find | Replace in Path.

Shortcut: Ctrl+Shift+R

like image 106
CrazyCoder Avatar answered Oct 21 '22 13:10

CrazyCoder


For those here coming from Google and that only want to find something in the entire project: CTRL+H

For a replace, there is no keyboard shortcut.

like image 40
Guillaume Chevalier Avatar answered Oct 21 '22 11:10

Guillaume Chevalier


[Quick Answer]

  • Find and Replace in the project ==> Ctrl+Shift+R
  • Find and Replace in a local file ==> Ctrl+R

[NOTE]:

Sometimes, it has adjusted to H instead of R

like image 25
Benyamin Jafari Avatar answered Oct 21 '22 13:10

Benyamin Jafari