Section color no longer an option in 2021b?

140 ビュー (過去 30 日間)
Cory Dinkle
Cory Dinkle 2021 年 10 月 19 日
編集済み: Mingjian 2024 年 11 月 17 日 20:10
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 件のコメント
Brian Keane
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.
Mingjian
Mingjian 2024 年 11 月 17 日 19:58
編集済み: Mingjian 2024 年 11 月 17 日 20:10
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.

サインインしてコメントする。

採用された回答

Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 10 月 26 日
Hi,
Starting in R2021b, sections in the Editor have an improve appearance. The new section is highlighted with a blue border, indicating that it is selected. Hence, "section display option" to highlight section is not available in R2021b.
For more information refer to R2021b Release Notes (Environment --> Editor Sections).
  52 件のコメント
ANGELICA LIPONI
ANGELICA LIPONI 2024 年 1 月 4 日
編集済み: ANGELICA LIPONI 2024 年 1 月 4 日
Hi, I agree with the sentiments expressed in the comments above (if not all, then certainly the vast majority). Having the ability to highlight the current section in the Editor by using a different background color would be greatly appreciated. It truly aids in visualizing the start and end of a section, which I find extremely helpful. I hope this option could be reinstated in the upcoming releases.
Additionally, as someone else has already pointed out (here), it's currently challenging to discern the starting point of the text within a line due to the presence of a left margin. Consequently, it's unclear if there's any indentation present. Thank you!
Ivan Kirschner
Ivan Kirschner 2024 年 2 月 26 日
移動済み: Walter Roberson 2024 年 7 月 19 日
I vastly prefer the old yellow section highlighting for functions, scripts, or any other form. It does not take up any space at all. Like Bob, I strictly use functions for programming in MATLAB, but I like the narrow line numbering width. PLEASE bring back the yellow section highlighting!!!!!!

サインインしてコメントする。

その他の回答 (2 件)

Paul Hoffrichter
Paul Hoffrichter 2022 年 10 月 21 日
編集済み: Paul Hoffrichter 2022 年 10 月 21 日
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
Alan Peters 2022 年 10 月 3 日
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
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
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?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by