R2021b: The Run Section tool in the Editor has been removed

16 views (last 30 days)
per isakson
per isakson on 26 Sep 2021
Edited: per isakson on 27 Sep 2021
I use the Run Section tool all the time and was surprised to read in the R2021b release notes that it's been removed. Is it replaced by something better? I failed to find anything of that kind in the documentation.
The old question Keyboard shortcut to evaluate current line? has 619 views (last 30 days), which indicates that the tool has users. The accepted answer presents a working solutions, which uses matlab.desktop.editor.getActive and eval. Is there an API for the new Editor (similar to the old Editor API, matlab.desktop.editor)?

More Answers (1)

Steven Lord
Steven Lord on 26 Sep 2021
I believe that entry in the Release Notes could use a set of quotes around the name of the tool. There was a tool that would let you increment a selected value and then rerun the section in which it was located as one step, the "Increment Value and Run Section" tool. See the Evaluate Code Sections portion of this documentation page from the release R2020b documentation for more information.
It is that tool which has been removed, not the "Run Section" tool accessible from the Toolstrip.
  1 Comment
per isakson
per isakson on 27 Sep 2021
Thank you for your patience. I misread, jump to the wrong conclusion and was too quick to submit a question. Sorry.

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!