主要内容

matlab.suggestions Settings

Code suggestions settings

Since R2026a

When you write code in the Command Window, Editor, Live Editor, and App Designer, MATLAB® provides real-time suggestions as you type. You can change the behavior of these suggestions using the matlab.suggestions settings. Access matlab.suggestions settings using the root SettingsGroup object returned by the settings function. For example, set the temporary value for showing a footer with tips at the bottom of suggestions window to 0 or 'off'.

s = settings;
s.matlab.suggestions.ShowTips.TemporaryValue = 0

For more information about settings, see Access and Modify Settings Programmatically.

In R2025a: Suggestions settings for the Command Window are located under MATLAB > Command Window > Suggestions. Suggestions settings for the Editor, Live Editor, and App Designer are located under MATLAB > Editor/Debugger > Suggestions and Autocompletions.

Before R2025a: Suggestions settings for the Command Window are located under MATLAB > Command Window > Automatic Completions. Suggestions settings for the Editor, Live Editor, and App Designer are located under MATLAB > Editor/Debugger > Automatic Completions.

matlab.suggestions

Accept suggestions on right arrow, specified as 1 or 0.

Set to 1 to accept suggestions using the right arrow key. Set to 0 to accept suggestions only using the Tab and Enter keys.

Example: s.matlab.suggestions.AcceptOnRightArrow.TemporaryValue = 0

Show footer with tips at bottom of suggestions window, specified as 1 or 0.

Set to 1 to show a footer at the bottom of the suggestions window with tips on how to configure suggestions. Set to 0 to hide the footer.

Example: s.matlab.suggestions.ShowTips.TemporaryValue = 0

matlab.suggestions.commandwindow

Show suggestions automatically in the Command Window, specified as 1 or 0.

Set to 1 to show suggestions as you type in the Command Window. Set to 0 to show suggestions only when you press Ctrl+Space or the Tab key.

Example: s.matlab.suggestions.commandwindow.ShowAutomatically.TemporaryValue = 0

Show suggestions on tab in the Command Window, specified as 1 or 0.

Set to 1 to show suggestions when you press the Tab key in the Command Window. Set to 0 to show suggestions only when you press Ctrl+Space.

Example: s.matlab.suggestions.commandwindow.ShowOnTab.TemporaryValue = 0

Only accept suggestion if it is the only suggestion in the Command Window, specified as 1 or 0.

Set to 1 to only accept a suggestion when the Tab key is pressed if it is the only suggestion.. Set to 0 to accept the first suggestion when the Tab key is pressed.

For more information about code suggestions and completions, see Check Syntax as You Type.

Example: s.matlab.suggestions.commandwindow.TabAcceptsOnOneSuggestion.TemporaryValue = 1

matlab.suggestions.editor

Show suggestions automatically in the Editor, Live Editor, and App Designer, specified as 1 or 0.

Set to 1 to show suggestions as you type in the Editor, Live Editor, and App Designer. Set to 0 to show suggestions only when you press Ctrl+Space or the Tab key.

For more information about code suggestions and completions, see Check Syntax as You Type.

Example: s.matlab.suggestions.editor.ShowAutomatically.TemporaryValue = 0

Show suggestions on tab in the Editor, Live Editor, and App Designer, specified as 1 or 0.

Set to 1 to show suggestions when you press the Tab key in the Editor, Live Editor, and App Designer. Set to 0 to show suggestions only when you press Ctrl+Space.

For more information about code suggestions and completions, see Check Syntax as You Type.

Example: s.matlab.suggestions.editor.ShowOnTab.TemporaryValue = 0

Only accept suggestion if it is the only suggestion, specified as 1 or 0.

Set to 1 to only accept a suggestion when the Tab key is pressed if it is the only suggestion.. Set to 0 to accept the first suggestion when the Tab key is pressed.

Example: s.matlab.suggestions.editor.TabAcceptsOnOneSuggestion.TemporaryValue = 1

Version History

Introduced in R2026a