Section color no longer an option in 2021b?
Afficher commentaires plus anciens
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 commentaires
Ravinder Hans
le 29 Déc 2021
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
le 20 Jan 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 20 Jan 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 20 Jan 2022
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
le 21 Jan 2022
Modifié(e) : Simeon Yurek
le 21 Jan 2022
Is it possible to turn off the section highlight/blue line feature in 2021b while still keeping section breaks? Thanks!
Marcel
le 28 Jan 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 22 Mar 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 20 Avr 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 4 Mai 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
+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
le 4 Mai 2022
Déplacé(e) : Dyuman Joshi
le 4 Jan 2024
Please give it back.
Liang Hu
le 6 Mai 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 9 Mai 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
I would also greatly appreciate to have the yellow highlighting back, please!
Michael Drew
le 17 Juin 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
+1 vote from me. This is a horrible "improvement"! Please bring back the old formatting as an option.
André A
le 20 Sep 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 21 Oct 2022
Déplacé(e) : Walter Roberson
le 19 Juil 2024
+1 for the suggestion to change it back. I, too, much prefer the yellow highlight.
Xingwang Yong
le 28 Jan 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 3 Mar 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
Please bring back the yellow highlight! It was much more eye-friendly before.
Nicolae Moise
le 27 Mar 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
Can you please bring back the old section highlights, at least as an option in the preferences?
Christopher Koh
le 14 Juin 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 22 Sep 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 2 Nov 2023
Déplacé(e) : Walter Roberson
le 19 Juil 2024
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
le 29 Nov 2023
Déplacé(e) : Dyuman Joshi
le 4 Jan 2024
Please bring back the yellow highlight!
Mike Brennan
le 13 Déc 2023
Déplacé(e) : Dyuman Joshi
le 4 Jan 2024
Please bring back the yellow highlight!
Schuvol
le 27 Jan 2024
Please bring back the yellow highlight!
Brian Keane
le 13 Mar 2024
Yes, please bring it back.
Konstantinos Chiotis
le 9 Juil 2024
Déplacé(e) : Walter Roberson
le 19 Juil 2024
Indeed, the yellow highlight was much more eye-friendly!
Christopher Koh
le 9 Juil 2024
Can I request another improved appearance, to have a section highlight option once again?
shengzhi
le 19 Juil 2024
Déplacé(e) : Walter Roberson
le 19 Juil 2024
R2024a still no section highlight
Brian Keane
le 19 Juil 2024
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.
Réponse acceptée
Plus de réponses (2)
Paul Hoffrichter
le 21 Oct 2022
Modifié(e) : Paul Hoffrichter
le 21 Oct 2022
5 votes
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
le 3 Oct 2022
2 votes
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 commentaires
Amy
le 26 Oct 2022
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
le 26 Oct 2022
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?
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
