Development Environment | ![]() ![]() |
General Preferences for the Editor/Debugger
When you first access preferences for the Editor/Debugger, you can specify the general preferences described here.
Editor
By default, the Built-in editor option is selected, meaning that MATLAB uses its own Editor/Debugger.
To specify a text editor other than MATLAB's Editor, such as Emacs or vi, to be used when you open an M-file from within MATLAB, select Other. In the Other field, type the path to the editor application you want to use.
For example, specify C:\Applications\Emacs.exe
in the Other field, and then open a file using Open from the File menu the MATLAB desktop. The file opens in Emacs instead of in the MATLAB Editor/Debugger.
By default, the item Command Window debugging is unchecked. The result is that when you run an M-file containing breakpoints, the MATLAB Editor/Debugger opens when it encounters a breakpoint.
If you use debugging functions, you might want to check the item Command Window debugging so that the Editor/Debugger does not open when a breakpoint is encountered.
Most recently used file list
Use this preference to specify the number of files that appear in the list of most recently used files in the File menu.
On restart
To start MATLAB and automatically open the files that were open when you last shut down MATLAB, check the item Reopen files from previous MATLAB session. If the item is unchecked and you close MATLAB when there are files open in the Editor/Debugger, the next time you start MATLAB, the Editor/Debugger is not opened upon startup.
![]() | Preferences for the Editor/Debugger | Font & Colors Preferences for the Editor/Debugger | ![]() |