Editor saving .m file when switching between editor tabs.
1 view (last 30 days)
Show older comments
I'm using MATLAB R2014b and I've recently been working with several files open at once in the editor window. However, I didn't notice until just today that if I have unsaved changes in one file and switch to a different tab, those unsaved changes are now saved. Most of the time this isn't a problem, but if I hadn't caught it today I would have done some serious damage to one of my scripts. Is there a way to disable this feature? I like to know when I am deliberately saving a file (aside from backups).
0 Comments
Accepted Answer
Steven Lord
on 26 Jul 2016
See the last item in the Desktop section of the Release Notes for MATLAB for release R2014b for instructions on how to turn this behavior off in the Preferences.
5 Comments
Eric
on 16 May 2022
Unfortunately the updated link now takes me to a page that says "Found 0 notes" - but thanks to Michael Murray for providing the necessary information on how to change this behaviour.
I have to say this editor behaviour is up there with the dumbest defaults of all time. I have accidentally overwritten a number of scripts and functions after making edits and clicking in another window to check something - yup, file overwritten!
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!