Visual Studio Code has an exceptionally good “global” search and replace. I just used it for multiple multi-line changes on numerous files, including some Regexp search with capture and replace.
- Open VS Code
- File → Open Folder, open the folder your files reside in
- Open a file and select the text you want to replace
- CTRL + SHIFT + H to open Search & Replace
- If you selected a text it will auto-fill, even multi line. Otherwise enter the text, use SHIFT + Enter to insert newlines, and optionally enable Regexp.
- Enter the replacement text
- Press Enter to start the search
- Click on change-items to preview the changes side by side
- Use the Replace All button (CTRL + ALT + Enter) to apply and save the changes