MATLAB Answers

How do I Ctrl-R on Mac?

13 views (last 30 days)
Katy Soto
Katy Soto on 16 Jan 2020
Answered: Steven Lord on 17 Jan 2020
Does anyone know how to use the Ctrl-R shortcut that comments a block of code in one go on MacOS? I've tried Cmd-R but that doesn't work. If anyone has any suggestions it would be very much appreciated.
Thank you.

  0 Comments

Sign in to comment.

Accepted Answer

Geoff Hayes
Geoff Hayes on 16 Jan 2020
Katy - on my version of MATLAB (on a Mac), I can comment a block of code with Cmd /. (Note that Cmd T uncomments the block of code.)

  1 Comment

Katy Soto
Katy Soto on 16 Jan 2020
That did the trick. Thank you very much!

Sign in to comment.

More Answers (1)

Steven Lord
Steven Lord on 17 Jan 2020
FYI to search for or customize the keyboard shortcuts, see the Keyboard preferences as described on this documentation page. Searching for "comment" will find you the correct action and show you its shortcut.

  0 Comments

Sign in to comment.

Sign in to answer this question.