When you perform search and replace in a file, pressing &shortcut:Find; shows the search pane. Pressing &shortcut:Replace; adds another field where you can type the replace string.

While using the Find in Path dialog, you can switch to replace by pressing &shortcut:ReplaceInPath;. Similarly, press &shortcut:FindInPath; to hide the Replace with field and switch to regular search.