Is there a way to only replace the current match in the current editor/file, without going to the next match in Visual Studio Code?
The replace button has the functionality of replace, find next match and scroll to the position of the next match.
With complex RegEx replacements I sometimes want to see the result of the replacement before going to the next.
what you want is to disable the setting:
Editor > Find: Cursor Move On Type
Not an obvious setting but it works to only replace the current match and not move to the next.
If you're looking to replace all occurrences without having to go one by one you can achieve this by using the left side menu.
1.Search for the occurrence you would like to replace
2.Toggle the arrow next to it 
3.Write the replacement string
4.Click on save all next to it.
5.You'll be asked if to do replace all for all the occurrences in the whole project. click yes and there you have it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With