Main Content

App Designer Preferences

You can set App Designer preferences in the MATLAB®Preferences dialog box. To open the dialog box, clickPreferencesin the MATLAB Toolstrip. Then, select App Designer in the left pane.

App Designer Preferences dialog box

This table describes each option in the right pane.

Option Description
Show grid with interval 选中时,网格应用程序设计师覆盖到the canvas as an alignment aide. You can change the grid spacing to a specific number of pixels. The default spacing is 10.
Snap to grid When selected, the upper left corner of a component always snaps to the intersection of two grid lines whenever you resize or move the component on the canvas.
Show alignment hints When selected, App Designer displays alignment hints as you resize or move a component on the canvas.
Show resizing hints When selected, App Designer displays the size of a component as you resize it on the canvas.
Font size To change the font size that displays in App DesignerCode View, click the link and modify theDesktop code fontsize. The font size can range from 8–48. The default font size is 10.
Enable app coding alerts When selected, App Designer flags coding problems in the editor as you write code.
Read-only background You can change the background color of the uneditable code sections in App DesignerCode View。To change the background color, clear theUse system colors复选在MATLAB颜色首选项中。然后,从App Designer偏好设置中从颜色下拉下来选择新颜色。默认背景颜色为灰色。
Include component labels in Component Browser When selected, labels included with components (such as edit fields) appear as separate items in theComponent Browser。未选择此项目时,那些标签不会出现在Component Browser
Number of entries (most recently used file list) This number specifies how many of the most recently accessed apps appear under theRecent Filessection of theOpenmenu in theDesignertab.
Save changes upon clicking away from an app When selected, App Designer automatically saves changes to an app when you click away from it to switch between apps or to bring another window into focus. If an app has not already been saved at least once, autosave has no effect.
Show file extension in window title When selected, App Designer displays the file extension of the active app in the App Designer window title.
Show file path in window title 选择后,App Designer在App Designer窗口标题中显示“活动”应用程序的完整路径。未选择此项目时,App Designer仅显示应用文件名。

To customize the App Designer canvas andComponent Browsersettings programmatically, usematlab.appdesigner Settings

相关话题