Main Content

Change MATLAB Copilot Settings

Since R2025a

You can change settings to configure MATLAB® Copilot. Use the Settings window to interactively access and modify MATLAB Copilot settings.

To open the Settings window for MATLAB Copilot settings, use one of these options:

  • MATLAB Toolstrip: On the Home tab, in the Environment section, click Settings. Then, in the left pane of the Settings window, select MATLAB Copilot.

  • Copilot status indicator: In the lower left corner of the MATLAB desktop, click the Copilot status indicator and select Copilot Settings.

    Copilot status indicator in the lower left corner of the desktop showing the Copilot Settings option

  • MATLAB command prompt: Enter preferences 'MATLAB Copilot'.

Disable MATLAB Copilot

If you have a license for MATLAB Copilot, then it is enabled by default. To disable Copilot and hide its features, use one of these methods:

  • Clear the Enable MATLAB Copilot check box in the MATLAB Copilot Settings window.

    Settings window with the Enable MATLAB Copilot check box cleared

  • Disable Copilot programmatically by using the matlab.desktop.copilot.CopilotEnabled.PersonalValue setting. You can set its value as:

    • false — Disabled

    • true — Enabled

    For example, disable Copilot.

    s = settings;
    s.matlab.desktop.copilot.CopilotEnabled.PersonalValue = false;
    
  • Quickly enable or disable MATLAB Copilot from the Copilot status indicator, without going to the Settings window. The status indicator provides either Enable Copilot or Disable Copilot as options, depending on the current status of Copilot. For example, if MATLAB Copilot is enabled, then disable it from the status indicator. At the lower-left corner of the MATLAB desktop, click the Copilot status indicator and select Disable Copilot. (since R2026a)

    Copilot status indicator in the lower-left corner of the desktop showing the Disable Copilot and Copilot Settings options

Disable or Pause Autocompletions

In the Editor and Live Editor, you can use Copilot autocompletion to generate code. You can manage autocompletion behavior by using the MATLAB Copilot Settings window.

The Copilot autocompletions mode list has three options:

  • Enabled — In the Editor, Copilot autocompletion generates code after you press the Enter key. The generated code appears next to the button at the cursor location. This behavior is the default behavior.

  • Disabled — Copilot autocompletion does not generate code. Pressing Enter results in a new line.

  • Paused — Copilot autocompletion does not generate code after you press Enter. The button appears at the cursor location, but without generated code.

MATLAB Copilot Settings window displaying Copilot autocompletions mode options

You also can disable autocompletions programmatically using the matlab.editor.autocompletions.EnableAutocompletions.TemporaryValue setting. You can set its value as:

  • 0Disabled

  • 1Enabled

  • 2Paused

For example, disable autocompletions.

s = settings;
s.matlab.editor.autocompletions.EnableAutocompletions.TemporaryValue = 0;

Disable Ask Copilot Keyboard Shortcut Hint

Since R2026a

You can disable the Ask Copilot keyboard shortcut hint. By default, the Command Window, Editor, and Live Editor frequently display a shortcut hint reminding you that you can press Ctrl+Shift+P to generate code with Copilot (or Command+Shift+P on macOS).

Ask Copilot keyboard shortcut hint in the Command Window

There are three ways to disable the keyboard shortcut hint.

  • To dismiss the hint for the current session in the Command Window, Editor, or Live Editor, click the Dismiss link in the shortcut hint. You can still press Ctrl+Shift+P to generate code, but the hint will not be displayed again during the current session. The shortcut hint appears again if you switch between the Command Window, Editor, and Live Editor, or if you restart MATLAB.

  • To disable the hint for all sessions, select the Disable keyboard shortcut hint check box in the MATLAB Copilot Settings window. You can still press Ctrl+Shift+P to generate code, but the hint will not be displayed during the current or future sessions.

    Ask Copilot Disable keyboard shortcut hint setting in the Settings window

    To enable the hint, clear the Disable keyboard shortcut hint check box.

  • To disable the hint programmatically, use the matlab.desktop.copilot.AskCopilotShortcutHintDisabled.PersonalValue setting. You can set its value as:

    • true — Disabled

    • false — Enabled

    For example, disable the keyboard shortcut hint. You can still press Ctrl+Shift+P to generate code, but the hint will not be displayed.

    s = settings;
    s.matlab.desktop.copilot.AskCopilotShortcutHintDisabled.PersonalValue = true;
    

Customize Ask Copilot Keyboard Shortcut

Since R2026a

You can customize the keyboard shortcut that opens an Ask Copilot text box. To change the shortcut from Ctrl+Shift+P, open the Settings window. Go to MATLAB > Keyboard > Shortcuts, and in the Ask Copilot row, remove the Ctrl+Shift+P shortcut. Click the + button to add a custom shortcut. (On macOS systems, use the Command key instead of the Ctrl key.)

Ask Copilot keyboard shortcut setting in the Settings window

See Also

Topics