Section color no longer an option in 2021b?
이전 댓글 표시
Prior to the changeover (versions 2021a and older), the current section in the Editor would be highlighted a yellowish color. Now with 2021b, there is a blue bar on the left to indicate the current section. I'd like the yellow-highlighted color back. Looking at the forum, there was an option in Preferences -> Colors -> Programming Tools that would allow the user to customize this section color, but unfortunately this has been removed. Or am I not seeing it somewhere?
댓글 수: 30
Ravinder Hans
2021년 12월 29일
It is disappointing that this feature is no longer available! I was so used to it and it helped to focus on a section of code during development. Please bring it back!
Marcel
2022년 1월 20일
이동: Walter Roberson
2024년 7월 19일
I was checking out the 2022a pre-release, and found that there is still no option to highlight the current code section. Can you please address this user request before launching the official 2022a.
David Rosenbaum
2022년 1월 20일
이동: Walter Roberson
2024년 7월 19일
Much appreciated, folks. That will help and I (we) appreciate your responsiveness ... Two more suggestions for MATLAB: (1) Provide a feature whereby all the section headers (distinguishing strings after %%) are shown as a kind of table of contents in the program and not just in the Publish version; (2) Allow for subsections down to some arbitrary number of levels as in standard hierarchicies.
Miguel Ángel Ortiz Salazar
2022년 1월 20일
I'm seriously considering going back to the 2020b version because of this. The yellow background on the current section helped a lot.
Simeon Yurek
2022년 1월 21일
편집: Simeon Yurek
2022년 1월 21일
Is it possible to turn off the section highlight/blue line feature in 2021b while still keeping section breaks? Thanks!
Marcel
2022년 1월 28일
이동: Walter Roberson
2024년 7월 19일
It is not possible to see where the line start, where is character 1. The current editor looks like there are 3-4 free space before the first letter, so the entire line looks intended, even if it's not. With the (yellow) highlight in the picutre below from 2021a it was clearly visibly where the first character of this line is.
MATLAB 2021b

MATLAB 2021a

Ian Townend
2022년 3월 22일
이동: Walter Roberson
2024년 7월 19일
I have just migrated from 2020b to 2022a. All I can see on my screen to denote the current section are two horizontal blue lines. The side bar blue strip is so thin it is almost invisible. I will try adapting but may well revert to using 2020b for editing. As already stated there is a high degree of subjectivity in the statement that this change has improved the appearane. For me the ability to clearly identify the current section with a pale colored background was one of the strengths of the Matlab editor.
Shyam Kishor Sharma
2022년 4월 20일
이동: Walter Roberson
2024년 7월 19일
Yes, Recently I updated my version from 2018 to 2022a , and there is no option for yellow color in section after %% sign .I used to that features .Please bring back the previous display settings.
Thanks.
Naor
2022년 5월 4일
이동: Walter Roberson
2024년 7월 19일
+1 that request, and also requesting the option to remove the horizontal line between sections.
Sections are valuable to me in functions (as opposed to scripts or live scripts) as a way to visually organize code, perhaps like paragraphs or chapters in prose. A subtle visuale distinction between sections is very helpful, while a strong visual distinction is more distracting than helpful.
Jakub Matousek
2022년 5월 4일
이동: Dyuman Joshi
2024년 1월 4일
Please give it back.
Liang Hu
2022년 5월 6일
이동: Walter Roberson
2024년 7월 19일
Please give this option back I am so used to it. Have to downgrade to 2021a after upgrading to 2022a. It is just a waste of time.
Martin Brand
2022년 5월 9일
이동: Walter Roberson
2024년 7월 19일
I would also greatly appreciate to have the yellow highlighting back, please!
Michael Drew
2022년 6월 17일
이동: Walter Roberson
2024년 7월 19일
+1 vote from me. This is a horrible "improvement"! Please bring back the old formatting as an option.
André A
2022년 9월 20일
이동: Walter Roberson
2024년 7월 19일
I also agree the highlight should be back. And also an option to change the color if this blue line, because it is awkward in my dark background.
Matthew McMahon
2022년 10월 21일
이동: Walter Roberson
2024년 7월 19일
+1 for the suggestion to change it back. I, too, much prefer the yellow highlight.
Xingwang Yong
2023년 1월 28일
이동: Walter Roberson
2024년 7월 19일
Improved appearance? The default color scheme in R2022a is already a mess. Not to mention the missing section highlight, which can not be adjusted anymore.
Adam Golinski
2023년 3월 3일
이동: Walter Roberson
2024년 7월 19일
Please bring back the yellow highlight! It was much more eye-friendly before.
Nicolae Moise
2023년 3월 27일
이동: Walter Roberson
2024년 7월 19일
Can you please bring back the old section highlights, at least as an option in the preferences?
Christopher Koh
2023년 6월 14일
이동: Walter Roberson
2024년 7월 19일
I would like to chime in here, and request that MATLAB brings back the old section highlights.
Or at the very least, allow the end-user to choose their own "improved appearance" options, instead of MATLAB unilaterally deciding what constitutes an "improved appearance".
Here's to R2021a instead of R2023.
Christopher Koh
2023년 9월 22일
이동: Walter Roberson
2024년 7월 19일
Mathworks.
This "improved appearance" of removing section highlights is actually an order of magnitude worse. In fact, I will be on record and say that Matlab R2021a has a BETTER APPEARANCE than R2021b because it has section highlights.
This degradation in appearance is also making me actively look for a better editor than MATLAB's in-built editor, or perhaps use another language. Perhaps I should get ChatGPT to code me an editor that has section highlights. Just a thought.
tutku oztel
2023년 11월 2일
이동: Walter Roberson
2024년 7월 19일
so frustrating how hard it is atm to navigate across the sections with the current default </3 i was barely paying attention to what we have at the lefthand side of the coding window until now. bad decisions... hated it
Krzysztof Stopka
2023년 11월 29일
이동: Dyuman Joshi
2024년 1월 4일
Please bring back the yellow highlight!
Mike Brennan
2023년 12월 13일
이동: Dyuman Joshi
2024년 1월 4일
Please bring back the yellow highlight!
Schuvol
2024년 1월 27일
Please bring back the yellow highlight!
Brian Keane
2024년 3월 13일
Yes, please bring it back.
Konstantinos Chiotis
2024년 7월 9일
이동: Walter Roberson
2024년 7월 19일
Indeed, the yellow highlight was much more eye-friendly!
Christopher Koh
2024년 7월 9일
Can I request another improved appearance, to have a section highlight option once again?
shengzhi
2024년 7월 19일
이동: Walter Roberson
2024년 7월 19일
R2024a still no section highlight
Brian Keane
2024년 7월 19일
I ask that you please bring back the section highlight from 2021a. As a person who professionally studies visual perception, I can say that color-coded sectioning provides a powerful and intuitive way to discern where you are in the script, and where one section ends and the other begins. At the very least, it should be offered as an option that can be toggled on or off.
Still no section highlighting in R2024b. But there is now a "Highlight current line" option, so clearly there is no technical barrier in optionally rendering text background color. Imo highlighting current section is much more ergonomic than highlighting a single line, since it makes sense to read up and down from a single line to understand a code section. Highlighting a single line may unnecessarily attract human attention to the single line, hindering contextual understanding of the whole section. I turned it off immediately after opening the new MATLAB installation.
채택된 답변
추가 답변 (2개)
Paul Hoffrichter
2022년 10월 21일
편집: Paul Hoffrichter
2022년 10월 21일
5 개 추천
When I called MathWorks about coloring of the call stack lines (above the current function) when stepping through the r2021b debugger, the agent checked and saw another similar complaint. They fixed this problem in r2022a but did not fix it for r2021b.
If they get many complaints on the technical support line, maybe they will add the yellow color section background. So call!
Technical Support: 508-647-7000 Access to technical support requires a valid license number and a Software Maintenance Service subscription.
Enter ver to get the license number.
Not sure how this works for students. However, they are acutely aware that students become their future customers, so call and find out how to complain about their bad feature.
When calling be very specific about this one missing yellow background issue. Don't combine multiple issues in one call.
Alan Peters
2022년 10월 3일
2 개 추천
The blue line thing is not only a worse indicator of the current selection but it is also, to put it nicely, an annoyance. If I accidently click on it the section runs. That is actually more than an annoyance because it completely disrupts my flow. That makes me angry in a time when I do not need one more source of anger. Some people may like the new live blue line. But I most decidedly do not. Please make it an option so I can get rid of it!
댓글 수: 2
Amy
2022년 10월 26일
Alan, if you right click in any part of the left margin, you can unselect "Show Run Section Margin". This preference will take effect in all open editors and in all future MATLAB sessions and is available in R2021b and later releases. This is documented on the page Create and Run Sections in Code.
Alan Peters
2022년 10월 26일
Thank you very much, Amy! That does solve my problem -- accidently clicking on the blue line causes the whole script to run when I did not want it to and thereby dissrupted my work flow. Now I'm back to where I was and that is good.
I do wonder why, when introducing a GUI element that supplants a current one, the current one is not kept as an option. I understand that it some cases that is not possible. But having either a blue line next to, or a yellow highlight over the current section seems rather a trivial option to implement. I have been using matlab for 35 years(! Time flies.) first on Sun Workstations, later on windoze PCs. The changes in the program over that time have been dramatic, amazing, and largely very welcome. One that threw me was when the keyboard shortcuts changed from the unix/vi set to a windows set. But I soon found that the previous set still worked, it just had to be installed. No problem at all! I still install those with every new release and continue on. So Mathworks knows how to provide alternatives. I am surprised that the yellow highlight was not retained as an option. Perhaps an unintended oversight?
카테고리
도움말 센터 및 File Exchange에서 Variables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
