@Alan-Kilborn said in Search results unchanged after a change.:
I think (can’t check right now) that when Visual Studio’s editor does a replace-in-files, it populates its find-output window with all of the replacements made – this sounds similar to what OP here is describing?
Reply
Don’t use Visual Studio much, but as I said Visual Studio Code search & replace is extremely advanced and dynamic.
When you type a search string it is updating the search results in real-time, highlighting the search string.
When you type a replace string it dynamically overstrike the original “search” string in the results, highlighted in RED and present after it the “replace” string in green. All of this before actually commiting to the search and replace.
Extremely cool. Impressive work of engineering. However, the benefit over Notepad++ primitive search and replace is limited.
Admittedly, search and replace is error prone so the ability to see the results BEFORE helps boosting your confidence. However, that is not what was asked by @Alan-Wynne
So my claims are:
Doing anything similar to VSCode is a complete rewrite. Doing simple post search has questionable value. Doing it automatically could annoy lots of users.An undo feature for search and replace in files would be nice.