开发者

Prevent MATLAB from creating a new file when it can't find the file I want to open

I will often attempt to open an existing MATLAB file from the MATLAB comma开发者_如何学编程nd window using something like:

edit exampleFile

Alternatively, I may press cmd + shift + D with the name of a function to be opened highlighted in the editor.

However, if the function I wish to open is not on the path when using either of these methods, MATLAB will irritatingly create a new blank file exampleFile.m in the current folder. This is extremely annoying. Is there a way to stop this? Ideally, MATLAB would prompt to see if I wanted to create a new file before actually doing it.


In File -> Preferences -> General -> Confirmation Dialogs, there is a checkbox that says "prompt when editing a file that does not exist". Check it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜