Let’s say if you had some code like this:
if (foo) {
if (bar) {
return 1;
} else {
return 2;
}
} else {
return 3;
}
When you undo it automatically turns into this:
if (foo) {}
if (bar) {}
return 1;
else {}
return 2;
else {}
return 3;
It even flashed each time with its original formatting when I undo, but it still automatically converts it into another kind of formatting.
I couldn’t even redo to turn it back because it just didn’t do anything. I just had to copy the broken code into a new tab and fixing it and try to remember what I’ve undone.