1.在matlab命令行中运行prefdir, 获取matlab.prf文件所在路径。
2.打开matlab.prf所在路径, 找到matlab.prf文件。
3. 可以用记事本打开.prf文件,把文件内容用如下内容替换便可。
#MATLAB Preferences
#Fri Apr 13 11:41:43 CST 2018
MatlabExitConfirm=Bfalse
ColorsMLintAutoFixBackground=C-7973573
RLWidthB2_WB_2014b_1_1=I130
RLWidthB2_WB_2014b_1_0=I130
EditorOtherEditor=S
EditorAutoReloadFiles=Btrue
EditorReloadFiles=Btrue
DocumentsDetailViewerCollapsed=Bfalse
Color_CmdWinWarnings=C-39936
EditorGraphicalDebugging=Btrue
RLPrevInitB2_WB_2014b_1=Btrue
GeneralTextUseSystemFont=Btrue
Desktop.Font.Editor=SCustomFont
RLHiddenB2_WB_2014b_1=I16376
Colors_M_UnterminatedStrings=C-5111808
Colors_M_SystemCommands=C-448910
Editorhighlight-caret-row-boolean-color=C-2167080
CommandWindowClearConfirmation=Btrue
ColorsBackground=C-14211038
Colors_M_Warnings=C-27648
EditorMRUSize=I8
ColorsText=C-460558
EditorAutoTerminateLastLine=Bfalse
Editor.NonlocalVariableHighlighting.TextColor=C-5471745
Colors_M_Errors=C-65536
Desktop.Font.Editor2.Custom=F0 14 \u5FAE\u8F6F\u96C5\u9ED1
Editor.VariableHighlighting.Color=C-6931898
Desktop.Font.Code2=F0 10 Monospaced
Colors_M_Keywords=C-10036753
Desktop.Font.Text2=F0 9 Microsoft YaHei UI
EditorSaveOnBlur=Btrue
Colors_HTML_HTMLLinks=C-16732805
Editorhighlight-lines=C-13553108
Colors_M_Strings=C-1647756
EditorBuiltinEditor=Btrue
EditorOtherEditorTextFieldEntry=S
Colors_M_Comments=C-8355712
ColorsUseSystem=Bfalse
得到界面如下: