Search code examples
htmlsearchreplacephpstormhead

PHPStorm find and replace complete <head> tag in all the project files


I have got a bunch of HTML files from a client in a project. All the html pages have the same header and footer div, I have modified the header in the homepage index.html file. I want this modifed header to be replaced in all the html files in the project folder.

How do I use phpstorm search and replace in all files to replace the whole with the one I modified?


Solution

  • For mac,

    CMD + SHIFT + R

    Then you'll see the small page below.

    enter image description here

    If there are lots of records, it may take a while to find all of them, though.