How to undo a delete?
173 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Don Brohaugh
el 10 de Oct. de 2015
Respondida: Trevon McHansen
el 1 de Abr. de 2022
How do I undo an accidental delete when using the editor for a .m file, or alternatively retrieve the .m file from before the accidental delete?
0 comentarios
Respuesta aceptada
Star Strider
el 10 de Oct. de 2015
It depends on what you deleted. If a bit of code in the .m file you’re editing, in the very top Editor taskbar near the right end, there are two curved arrows. Clicking on the one that points to the left will undelete inadvertently deleted text.
For .m files, depending on the preferences you have set (particularly autosave), you might find the complete or earlier version of it with the same prefix and an .asv (instead of .m) extension. Otherwise for a deleted .m file, on Windows machines look in the Recycle Bin. (No guarantees — I’ve not done that so I have no personal experience — but that is where I’d look.)
0 comentarios
Más respuestas (2)
Trevon McHansen
el 1 de Abr. de 2022
If you accidentally deleted a file or folder (such as if you right click a folder and you meant to click "new->script" and instead you hit "delete" like I just did), And if you're using windows, you can navigate to the folder in windows explorer and ctrl+z.
i.e. I just deleted the folder "src/myProject/test/files" so I navigated to "src/myProjects/test" in windows explorer and hit undo (ctrl+z) and the folder repopulated!
0 comentarios
Image Analyst
el 10 de Oct. de 2015
Look for a file with the same name but a .asv extension. This is the prior version - your autosaved backup file.
0 comentarios
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!