Skip to main content

MATLAB shortcuts

Your answer helps keep this page right.

Do these shortcuts work for you?

Function keys, alone or with Shift, are the whole Running and Debugging section of the MATLAB list. Run current script, Run selected section, Step over, Step into and Set/clear breakpoint need no modifier. Command Window has two shortcuts, Recall previous command and Recall next command, on the up and down arrow keys. Every Navigation shortcut is one modifier and a letter, such as Go to line and Open function definition.

SetappAd
A shortcut to the best Mac apps

An essential toolbox for macOS and iOS.

Start with these

  • Run current script
  • Run selected section
  • Set/clear breakpoint
  • Step over
  • Go to line
  • Evaluate selection in Command Window

Tips for MATLAB

  • With Shift, the key of Step into F11 becomes Step out ⇧F11 and the key of Run current script F5 becomes Stop debugging ⇧F5.
  • In Editing, the two bracket keys change the indent: Increase indent ⌘] and Decrease indent ⌘[ share one modifier.
Jump to section

File6

ActionShortcut
New script
Open file
Save current file
Save as
Close current document
Print

Editing10

ActionShortcut
Undo
Redo
Cut
Copy
Paste
Select all
Commentuncomment lines
Increase indent
Decrease indent
Smart indent (auto-format)

Running and Debugging7

ActionShortcut
Run current script
Run selected section
Step over
Step into
Step out
Set/clear breakpoint
Stop debugging

Command Window2

ActionShortcut
Recall previous command
Recall next command
Report a problem

GitHub is public. Email is private.

Frequently Asked Questions

How many keyboard shortcuts does MATLAB have on macOS?

MATLAB has 30 keyboard shortcuts on macOS, organized into 5 sections: File, Editing, Navigation, Running and Debugging, and more. This page lists all of them with searchable, organized shortcut tables.

Which MATLAB shortcuts should I learn first?

Start with Run current script (F5), Run selected section (F9), Set/clear breakpoint (F12), Step over (F10), Go to line (⌘G), Evaluate selection in Command Window (⌘E). The sections on this page list the rest.

Can I download MATLAB shortcuts as a PDF?

Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 30 MATLAB shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.

Where is the official MATLAB keyboard shortcuts documentation?

The official MATLAB keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.

Do these MATLAB shortcuts work on all Mac keyboards?

Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.

Maintained by

Access MATLAB shortcuts from your menu bar

KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.