Modify Command Window Settings - MATLAB & Simulink (original) (raw)

Main Content

You can customize the visual display and behavior of the Command Window and the command output within it using Command Window settings.

General Settings for the Command Window

You can specify what is displayed in the Command Window and how it is displayed including the default format of Datetime objects.

On the Home tab, in the Environment section, click Settings. Select > , and then adjust the options as described in this table.

Setting Usage
Text display Select a Numeric format option to specify the output format of numeric values in the Command Window.For details, see Format Floating-Point Numbers.
Select a Line spacing option to specify whether blank lines appear in Command Window output. To suppress blank lines, select compact. To display blank lines, selectloose.
Datetime format Select a Locale option to specify the default input locale of the Datetime object. You also can enter a custom locale. For more information, including a list of common values, see datetime.
Select a Default date and time format option to specify the default format of theDatetime object. You also can enter a custom format. For more information, see the Format property for datetime arrays.
Select a Default date-only format option to specify the default date format of theDatetime object. You also can enter a custom format. For more information, see the Format property for datetime arrays.
Display Select Wrap lines to make each line of input or output in the Command Window break into multiple lines to fit within the current width of the Command Window.For details, see Wrap Lines of Code to Fit Window Width.
Select Set matrix display width to eighty columns to limit the width of matrix output.If you also select Wrap lines, and the width of the Command Window is fewer than 80 characters, each row of 80 characters of matrix output wraps to fit within the width of the Command Window.
Select Show getting started message bar to display the Command Window message bar that provides links to introductory information. Getting started message bar, with a link to introductory resources
Select Suggest corrections for mistyped functions and variables to display suggestions in the Command Window. If you enter an undefined function, variable name, or MATLAB® operator, MATLAB displays:Did you mean:followed by a suggested command at the command line. You can pressEnter to run that command orEsc to delete the suggestion.
Number of lines in command window scroll buffer specifies the maximum number of lines displayed in the Command Window. A larger scroll buffer provides a larger base for search features, but requires more memory. By default, the scroll buffer is set to 5,000 lines.The scroll buffer size does not impact the number of lines that you can recall. By default, you can use the up arrow key ↑ to recall all lines shown in the Command History, regardless of how many lines you see in the Command Window.

Command Window Suggestions Settings

You can change how MATLAB suggests and completes names in the Command Window.

On the Home tab, in the Environment section, click Settings. Select > > , and then adjust the options as described in this table.

Before R2025a: Suggestions settings are located under > > .

Setting Usage
Suggestions Select Show suggestions automatically to automatically show suggestions as you type in the Command Window. Clear Show suggestions automatically to show suggestions only when you press Ctrl+Space or the Tab key.For more information, see Code Suggestions.
Select Use Tab key to show suggestions (in addition to Ctrl+Space) to show suggestions when you press the Tab key in the Command Window Clear Use Tab key to show suggestions (in addition to Ctrl+Space) to show suggestions only when you press Ctrl+Space.
Select Use Right Arrow to accept suggestions (in addition to Tab and Enter) to accept suggestions using the Right Arrow key in the Command Window. Clear Use Right Arrow to accept suggestions (in addition to Tab and Enter) to accept suggestions using the Tab andEnter keys.
Select Tab key accepts only on one suggestion to only accept a suggestion when theTab key is pressed if it is the only suggestion. Clear Tab key accepts only on one suggestion to accept the first suggestion when the Tab key is pressed.
Select Show suggestions tips to show a footer at the bottom of the window that displays the list of suggestions with tips on how to configure suggestions. ClearShow suggestions tips to hide the footer.
Click the Reset Default Suggestion Size button to reset the window that displays the list of suggestions to its original size.

See Also

Topics