Skip to content
Sign upLog in
← Back to Community

How do you undo code that was accidentally deleted?

Profile icon
BlizzardDen

I'm new to replit and I'm trying to undo something that I deleted. Version control seems messy.. isn't there a <Ctrl + ?> option?

Voters
Profile icon
parinith21k
Profile icon
BlizzardDen
Comments
hotnewtop
Profile icon
STCollier

For recent undos, ctrl + z works.

Profile icon
BlizzardDen

@STCollier
thanks!! Another quick ?, if I want to comment out several lines at the same time what's the proc? And revert back?

Profile icon
STCollier

@BlizzardDen
I believe bash doesn't allow multi-line comments, so you have to single-line comment everything, unfortunately.

Profile icon
BlizzardDen

@STCollier
Okay, much appreciated!

Profile icon
SixBeeps

@BlizzardDen
Select some lines > [F1] > Toggle Block Comment