Section color no longer an option in 2021b?

168 ビュー (過去 30 日間)
Cory Dinkle
Cory Dinkle 2021 年 10 月 19 日
コメント済み: Brian Keane 2024 年 3 月 13 日
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?
  8 件のコメント
Schuvol
Schuvol 2024 年 1 月 27 日
Please bring back the yellow highlight!
Brian Keane
Brian Keane 2024 年 3 月 13 日
Yes, please bring it back.

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

採用された回答

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).
  42 件のコメント
Walter Nagy
Walter Nagy 2024 年 1 月 2 日
編集済み: Walter Nagy 2024 年 1 月 2 日
This is an improvement like when Apple removed the colors in the finder sidebar - this has been a sore issue for years now. It still sucks that this very useful highlighted section feature is gone since color is something some of us humans use to bring attention to a section or item quickly - probably why it was added in the first place :-). The blue bar is utterly lame and nearly useless. FYI, I didn't know it existed until I read it on this site since my desktop background is nearly the same blue color, ROFL. Why do you remove features/options instead of just providing the option to be enabled or disabled?
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!

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

その他の回答 (21 件)

Andrew Marshall
Andrew Marshall 2022 年 1 月 28 日
Yes. I would also like the yellow-ish highlighted cell mode to return. I don't like the current default.

Zhaoran Zhang
Zhaoran Zhang 2022 年 2 月 18 日
Yeah, I also like the yellow backgroud much better. I think the yellow helps me to focus on the current section better and give me more peace. I've been working with the same yellow background for years, feeling sad to not have it anymore.
  1 件のコメント
Richard
Richard 2022 年 3 月 15 日
Agreed. I think the yellow background that I had R2021a is great.... now I'm on R2022a I'm ticked off its gone.

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


John Brewer
John Brewer 2022 年 6 月 27 日
編集済み: John Brewer 2022 年 6 月 27 日
"Starting in R2021b, sections in the Editor have an improve appearance."
What if nobody thinks this is "an improve appearance"? I think comment point to problem.
  1 件のコメント
Dana Massie
Dana Massie 2023 年 7 月 18 日
This is not an "improve" appearance. It is a regression.

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


Marcel
Marcel 2022 年 1 月 28 日
I like to address another problem of a non-highlighted section @MathWorks Support Team:
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

Marcel
Marcel 2021 年 11 月 10 日
@Arthi Sathyamurthi why does the Blue bar on the left side sometimes not appear?
It seems that the section bar is not available, if a .m file is a function instead of a script?
Personally I agree with @Cory Dinkle, that "improved appearance" is very subjetive and I feel a big downside on the new layout...
  4 件のコメント
Bob
Bob 2022 年 2 月 16 日
In MATLAB, I exclusively program with only functions and classes. I find scripts limiting because they junk up the base workspace with variables. If I want to work with these variables at the command line, I simply use breakpoints to enter the debugger. So, this new design restriction on section highlighting artificially limits the section highlighting capability for me.
I vastly prefer the old style in which the background is highlighted in a color to the new blue bar. One way that I enjoyed using section highlighting was to help visually break up multiple local functions and nested functions within a single m-file. In fact, for GUIs with more than a handful of controls, I would say this highlighting capability is almost critical for me. If the old style was brought back to the Editor, or added as a new feature for the use case that I described, it would be greatly appreciated!
(Also, where is the capability in the MATLAB Editor to group multiple files under projects whose contents can be collapsed and expanded? I develop code for multiple tasks, and this feature would enormously aid in helping to organize my work. I have been waiting over 20 years for this capability to be added to the Editor...)
Ivan Kirschner
Ivan Kirschner 2024 年 2 月 26 日
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!!!!!!

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


Martin Brand
Martin Brand 2022 年 5 月 9 日
I would also greatly appreciate to have the yellow highlighting back, please!

Michael Drew
Michael Drew 2022 年 6 月 17 日
+1 vote from me. This is a horrible "improvement"! Please bring back the old formatting as an option.

Shyam Kishor Sharma
Shyam Kishor Sharma 2022 年 4 月 20 日
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.

Marcel
Marcel 2022 年 1 月 20 日
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.
  1 件のコメント
David Rosenbaum
David Rosenbaum 2022 年 1 月 20 日
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.

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


Ian Townend
Ian Townend 2022 年 3 月 22 日
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.

Naor
Naor 2022 年 5 月 4 日
+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.

Liang Hu
Liang Hu 2022 年 5 月 6 日
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.

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.

Matthew McMahon
Matthew McMahon 2022 年 10 月 21 日
+1 for the suggestion to change it back. I, too, much prefer the yellow highlight.

Xingwang Yong
Xingwang Yong 2023 年 1 月 28 日
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.

Nicolae Moise
Nicolae Moise 2023 年 3 月 27 日
Can you please bring back the old section highlights, at least as an option in the preferences?

Christopher Koh
Christopher Koh 2023 年 6 月 14 日
編集済み: Christopher Koh 2023 年 6 月 14 日
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.
  1 件のコメント
Christopher Koh
Christopher Koh 2023 年 9 月 22 日
移動済み: Dyuman Joshi 2024 年 1 月 4 日
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.

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


André A
André A 2022 年 9 月 20 日
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.

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?

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


Adam Golinski
Adam Golinski 2023 年 3 月 3 日
編集済み: Adam Golinski 2023 年 3 月 8 日
Please bring back the yellow highlight! It was much more eye-friendly before.

tutku oztel
tutku oztel 2023 年 11 月 2 日
編集済み: tutku oztel 2023 年 11 月 2 日
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

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by