Visual Studio Code - Snapshot to old versions of code

Viewed 23

I just started coding and using VSC, and I was wondering if there was an option or add-in to take "snapshots" or "savestates" of the code before I modify it, thus far I've been doing multiple Ctrl + Z until getting back where I was.

1 Answers

Yes, this is exactly what version control is for.

VSCode has very-well integrated support for Git, by far the most popular version control system.

If that's too heavyweight for you, you could just save copies of your source code locally before making changes. I used to do that - I'd have code1, code2, code3, etc...

Related