Restore old editor in R2021b?

R2021b has a new editor compared to R2021a. Is there any way to revert to the previous editor? The new version is much more graphically intensive and feels sluggish compared to the simple text editor in the previous version. Also, it renders the Monospaced font differently than the previous version, resulting in the editor font looking completely different to the command window font, which hasn't changed, despite them both using Monospaced.
For comparison, the editor from R2021a:
and the editor from R2021b:
If there is no way to revert the look of the editor, is there at least a way to have it use the same Monospaced font as the command window?

댓글 수: 14

Bill Gruner
Bill Gruner 2021년 11월 29일
I'm currently jumping back and forth between 2020b and 2021b on macOS Catalina and the editor in 2021b is quite often unresponsive to my font selections. The Command History and Command Windows are responsive, but the editor takes some selections and not others. It renders my favorite font, Fira Code, in a strong bold that's impossible to change. The editor in 2020b doesn't have these problems, so I'm currently editing using 2020b and testing using both 2020b and 2021b. It's a real bummer. Fonts are everything when you write code all day.
Star Strider
Star Strider 2021년 11월 29일
I never heard of Fira Code before, so I did a search for it. There’s a MATLAB for Windows Instructions page linked to it, however nothing for Mac although Mac OS versions apparently support it.
Likely the best option is to Contact Support including the URL of this thread in the message to them so that it is not necessary to repeat everything here. This could be a bug in R2021b that needs to be fixed, and MathWorks may not be aware of it.
(I like Fira Code, however it has a number of options — specifically the ligatures — that I likely wouldn’t use, so just I’ll keep using Consolas.)
Abhinav Parihar
Abhinav Parihar 2022년 1월 25일
Yes, I'm using it on a mac and the editor is very sluggish. When I scroll, the scrolling of line numbers is delayed compared to the scrolling of code. It's really ugly. I hope they fix this in 2022a or else I'll be sticking to 2021a unless I really need any new features.
Viktor Vajc
Viktor Vajc 2022년 2월 22일
편집: Viktor Vajc 2022년 2월 22일
What is the worst for me is that the positions of highlighted parts of code showed in the scroll bar do not correspond to their positions in the editor window. This is super confusing and annoying and makes this useful feature pretty much unusable.
And of course, the new editor is very slow, non-responsive and intrusive. The old editor was superfast and smooth. Unfortunately, I think we won't be allowed to go back to the previous version :-(
Nate Iamaio
Nate Iamaio 2022년 2월 28일
I'm actually uninstalling 2021b and returning to 2021a due to this issue. Mathworks please fix.
Smattering_Applause
Smattering_Applause 2022년 4월 4일
Also, in Preferences-->Font, what is shown for Monospaced, Plain, 10 is identical between 2020b and 2021b, but the editor plays with the font before showing it in 2021b. I annoyingly need to have 2021b installed for certain simulink viewing, but i'm going to stick with 2020b otherwise because the settings actually work.
Nicholas Turo-Shields
Nicholas Turo-Shields 2022년 4월 14일
I think I have the same issue. Two different versions, same settings, different font display. I think the newer (2022, probably also one or more of the 2021 releases) are using the live editor display environment even for regular (non-live) matlab scripts. They are clearly two very different fonts despite having the same settings.
creepydog
creepydog 2022년 5월 13일
I agree that this is very annoying and needs to be fixed. What I found out so far:
The documentation now says: "When the font is set to monospaced, the actual displayed font in the Editor is different than the font displayed in the Command Window and Command History. This is because monospaced is a logical font, not a physical font. To avoid this discrepancy, specify the font name as a physical font, for example, Courier New."
That sounds like an excuse but not like an explanation. Until R2021a, Matlab has been able to render fonts identically in both Command Window and Editor, regardless of whether you choose a logical Monospaced or a physical Courier New. Note: Until R2021a, the characters of Monospaced and Courier New looked the same (at least on my screen), but the line spacing was different.
If I switch to Courier New on R2022a (assuming it's the same in R2021b) and compare it to the older R2021a, I can see that the letters look a bit bolder, although a closer look shows it's more about brightness. (I hope the upload process preserves the effect ...). This occurs only in the Editor, of course.
Using Courier New on R2022a and comparing the Editor to the Command Window, I see that the line spacing is different.
I've not found any solution so far. But I'm afraid this is not a bug but rather a deliberate decision by someone at Mathworks who thought this was cool.
Alessandro D
Alessandro D 2022년 8월 4일
I found exactly the same problem. The new editor (since 2021b) is sluggish, intrusive and the fonts look different.. I hope mathworks will fix this for new editions
Yanhao Wei
Yanhao Wei 2022년 12월 11일
I agree. Even 2022b editor is sluggish, font not consistent. They need to bring the old editor back.
Rintarou
Rintarou 2023년 3월 30일
Cant agree more
Dmytro Gorkov
Dmytro Gorkov 2023년 4월 6일
same problem between R2020a and R2023a
Yanhao Wei
Yanhao Wei 2023년 8월 11일
Come on, R2023a and R2023b still the same problem. It is as if MathWork doesn't care.
Walter Roberson
Walter Roberson 2023년 8월 11일
How to get the old editor back:
  1. Buy out Jack's interest in Mathworks. Mathworks is a privately held company, no public shares, so this would be a matter of offering a huge chunk of money along with a solid business plan to show Jack that the company would be in good hands;
  2. Now that you own most of Mathworks, order the team to restore the old editor
  3. $$$Profit$$$

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean de Wolski
Sean de Wolski 2021년 9월 24일

9 개 추천

I changed these settings and it greatly improved the font for me:
s = settings;
s.matlab.fonts.custom.editor.FontToUse.PersonalValue = "CustomFont";
s.matlab.fonts.custom.editor.Name.PersonalValue = "Courier New";
s.matlab.fonts.custom.editor.Size.PersonalValue = 12; % in point

댓글 수: 2

Star Strider
Star Strider 2021년 9월 24일
Interesting!
I’ve not encountered the software version of those. I’ll search through the other options so I can have a backup in case future preferences also don’t get imported.
.
William Jacobs
William Jacobs 2021년 12월 9일
This leads to a significantly improved font (in my opinion).

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2021년 9월 24일

댓글:

2023년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by