Pycharm provides Inbuilt features

  • Find
  • Replace
  • Find in Files
  • Replace in Files

How to Search a word in all files of the python project

First way, using file menu:

  • To search for a word in a file

either use one of the options

  • Go to Edit Menu -> Find Option -> Find in Files

pycharm-find-options.png

  • Or with Shortcut command

    • Windows or Linux: Ctrl + Shift + f
    • Mac : ⇧ + ⌘ + F
  • It opens Find in Files Dialog window

  • Type a search word in a search box, It filters the result

pycharm Find Option

Second-way using Action Options:

  • use the shortcut command to open the Action window

    • Windows: Ctrl + Shift + A
    • Mac : ⇧ + ⌘ + A
  • It opens Action Popup, type Find in Files in the search box

  • It opens Find in the Files window

  • Type a search word in a search box, It filters the result for searching text.

pycharm Find in  Files Option Action window

Third way using Right click on Project:

  • Right-click on a project and Context Menu appeared
  • Select Find in the Files Option
    • It opens Find in the Files window
  • Type a search word in a search box, It filters the result for searching text.

pycharm Find in Files Option Action window