dnTosh
dnTosh

Reputation: 193

Does Matlab support undo deletion for the codes

I'm just going to ask for a really basic question on Matlab which bugs me often when using Matlab.

I sometimes, by accident, delete some chunk of my codes when using Matlab; however, there seems to be no way to undo the deletion or recover those chunks back from my codes.

Is there an undo button or short-cut for deletion of codes?

It's not really a big deal if I cant remember those chunk and write again, but it just seems like a tedious work to do again.

Upvotes: 5

Views: 6243

Answers (2)

Dima
Dima

Reputation: 39409

The undo button is on the little toolbar in the top-right corner: enter image description here

Or you can use Ctrl-Z if you are using the Windows shortcuts.

Upvotes: 8

Hauke
Hauke

Reputation: 19

You could use a source control system (SCM) like git (git-scm.com) to make backups of your code code.

Note: you need to save in between and then add them to your SCM. Or you could do backups automatically with a cron job.

Upvotes: 1

Related Questions