Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code How to UNDO Replace All

VS Code on Windows
changes were done with find and replace in the whole folder and with that, all of them saved automatically.
doing find and replace again would create a mess in different places.
undo did nothing.
ctrl+z did nothing.

How to UNDO find and replace through the whole folder?

Thanks!

this is the picture where you can see how I messed up

like image 517
Borbina Avatar asked Sep 13 '25 14:09

Borbina


2 Answers

Open up one of the affected files, and Ctrl-Z (Undo) in it. It will cascade and undo all the other files as well.

like image 179
radicand Avatar answered Sep 16 '25 07:09

radicand


Unfortunately, it looks like this isn’t possible. There is an open issue for this from 2018, but no progress on it that I see.

If you’re using a VC system, I would recommend you try and see if there’s anyway to recover from it.

like image 21
JediBurrell Avatar answered Sep 16 '25 07:09

JediBurrell