Is there a way to use 2021a editor in 2022a release

9 views (last 30 days)
For many good reasons I prefer 2021 editor to 2022.
(The reasons are too many to list and are rehashed in other questions. I understand that the new editor is a work in progress and will improve in due course.)
I have both versions installed (2021a and 2022a). Can I tell 2022a to use 2021a's editor? E.g. by changing something in ...\MATLAB\R2022a\toolbox\matlab\codetools\edit.m ?
Thank you.
  1 Comment
Bruno Luong
Bruno Luong on 2 Jul 2022
Not a chance you could do it, IMO.
In the same type of complain, I would like to use appdesigner code view in the same window with the regular mfile editor, since debugging while I have to switch window is not convenient.

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 2 Jul 2022
I agree with Bruno. I don't think you can do it. However you can specify another editor, like SlickEdit, in the MATLAB Preferences, but I haven't tried it. I'm doubtful you'll get the debugging tools in the third party editor so you might have to make your changes in your editor, then switch back to MATLAB which will automatically reload the changed file, and then you can start your running and debugging.
Of course the best option would be if MATLAB just let you use a programmers editor key mapping rather than the lame one built into the operating system, like Windows CUA, which might be good for word processing but is terribly inefficient for line-oriented programming. For example in a programmer's editor you can simply type + on the numeric keypad to copy the entire line (not matter where you are in the line or what may or may not be highlighted on the line) into the clipboard. Now with the clunky editor we got you have to put the cursor at some precise location to the left of the line of code (not easy) and then type control-C. Or else do HomeKey, shift-down-arrow, control-c. Very clunky.
I also agree with Bruno that I don't like that the IDEs for MATLAB and App Designer are separate. Maybe it's OK with someone running two monitors but for those of us running a single monitor, thrashing between windows is a pain and the main reason I have not yet switched to App Designer. In App Designer if you want to see for workspace variables, folder panel, or command window, you have to switch over to MATLAB and that's a pain if you're on one monitor. I wish the code, workspace panel, command window panel, and current folder panel could all be on the same IDE, but unfortunately they're not with App Designer.

Sign in to comment.

Shivam Lahoti
Shivam Lahoti on 3 Jul 2022
According to some matlab answers you might not be able to use the editor of 2021a in your 2022a release. But You can maintain different version of matlab, have alook into this matlab answers,
  1 Comment
Dmitry Kaplan
Dmitry Kaplan on 3 Jul 2022
I am not sure that the matlab answer you linked is pertinent to my situation, but yes, I just keep two versions of matlab around for this reason.

Sign in to comment.


Find more on Entering Commands in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!