Press Ctrl+R or to open the Replace in File window.
In the top field, enter your search string. In the bottom field, enter your replacement string. Click the icon for a multi-line replace. For example, if you want to replace a comma with a coma and a new line, enter a comma in the search field and a comma and the new line in the replace field.
Click Replace to replace items one by one, Replace all to replace all items in your file, and Exclude to omit some items from replacing.
The options that appear in the Replace window, are similar to the Find window and you can refer to the manage the search results section.
Replace the search string in a project
Press Ctrl+Shift+R to open the Replace in Path dialog.
In the top field, enter your search string. In the bottom field, enter your replacement string. For example, if you want to replace a variable name with a new name for a large project, use the replace in path instead of rename refactoring since your variable can appear in the config files as well.