An “Undo” button is available below the code editor to return to the previous state of the snippet if a modification doesn’t suit you.
A “Redo” button will be available if you have previously clicked on the “Undo” button.
It allows you to restore modifications if you’ve clicked on it by mistake.