Ask coding questions

← Back to all posts
How do you undo code that was accidentally deleted?
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
BlizzardDen
Comments
hotnewtop
STCollier

For recent undos, ctrl + z works.

BlizzardDen

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

STCollier

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

BlizzardDen

@STCollier Okay, much appreciated!

SixBeeps

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