Skip to content

Code folding chevron icon is confusing #78024

Closed

Description

@SirMaxxx

The icons now used for code expansion in Insiders 1.37.0 are essentially a '>' or a '>' rotated through 90 degrees.

when looking at code that uses '>' (e.g. HTML) and code is collapsed, there is visual confusion as it can appear there is a misplaced '>' in code...

e.g. in the code below on line 10
image

IMHO the original icons used were fine and did not need changing... at the very least, could they be coloured differently to easily distinguish from code at a glance?

Activity

  1. kanlukasz commented on Aug 5, 2019

    @kanlukasz

    Oh, I see now where the problem is.
    This is in fact problematic and it should undoubtedly be changed

  2. coaperator commented on Aug 8, 2019

    @coaperator

    Return +/- to collapse the code!

    Is it really impossible to redraw +/- if you really wanted to put the icons in order ?!

  3. cuylerstuwe commented on Aug 9, 2019

    @cuylerstuwe

    This is someone creating confusing UX in their attempt to accomplish their idea of "pretty UI".

    It's also an example of solutionism; Putting forth solutions to problems that don't exist. There was never any usability issue with the old expand/close icons.

  4. mitiko commented on Aug 9, 2019

    @mitiko

    The angle brackets are not cool looking. I like +/- better

  5. Cirieno commented on Aug 9, 2019

    @Cirieno

    Or perhaps give the option to switch between new and old style icons.

    I personally preferred the old style, as that is a convention used across many editors for many, many years.

  6. lisa-tong commented on Aug 9, 2019

    @lisa-tong

    If you're bringing back +/-, please keep the box outline! It was much more intuitive.

  7. ErikHumphrey commented on Aug 10, 2019

    @ErikHumphrey

    Oh, that's what they meant by +/- being changed to carets. Yeah, that's even worse than just using a solid triangle as an arrow. Bring +/- back!

  8. ShinRai1090 commented on Aug 11, 2019

    @ShinRai1090

    +1 to this, So many issues with the icons overall 😞. Best would be to give a opt-in for older set of icons or provide a way to make a selective change through either a set folder of icons or settings.json.

  9. MarkMcTernan commented on Aug 11, 2019

    @MarkMcTernan

    Yikes, how hard is it to make the choice configurable? Yet here we are, stuck with these awful new icons that are even more inconsistent than the "problem" they were meant to fix.

    At the very least give us the option to go back.

  10. ErikHumphrey commented on Aug 12, 2019

    @ErikHumphrey

    Yikes, how hard is it to make the choice configurable? Yet here we are, stuck with these awful new icons that are even more inconsistent than the "problem" they were meant to fix.

    At the very least give us the option to go back.

    To be fair, limiting it to one option makes it easier to maintain if the system changes in the future. Technically, it is already configurable, you just have to source the icons yourself.

  11. Cirieno commented on Aug 12, 2019

    @Cirieno

    To be fair, limiting it to one option makes it easier to maintain if the system changes in the future. Technically, it is already configurable, you just have to source the icons yourself.

    Looking at the icons through the devtools, it looks like they're SVGs. You'd have to override them with other SVGs, and some sort of CSS override -- how would one go about doing that?

  12. dmvvilela commented on Aug 12, 2019

    @dmvvilela

    LOL what have they done??? All the icons are stupid and ugly.. Revert everything to what it was please! Definitely included on this the left side bar icons.. Please. Also.. how do i downgrade till then?

  13. gjsjohnmurray commented on Aug 12, 2019

    @gjsjohnmurray
    Contributor

    how do i downgrade till then?

    #78748 (comment) has links to 1.36.1 kits.

    You may also want to change the update.mode setting to prevent an automatic upgrade.

  14. 12 remaining items

  15. ErikHumphrey commented on Aug 16, 2019

    @ErikHumphrey

    I'm only strongly against bringing back the triangles on the tree and breadcrumbs, where the chevrons are much better.

    Agreed, the chevrons are fine in the breadcrumbs and tree. Looks a little off with the Explorer section headers (Open Editors, Projectname, Outline, etc.), but I think I'll get used to it. They're not actually too bad for code folding either, since they only display when moused over, but it could be an option/setting/preference.

  16. dmvvilela commented on Aug 16, 2019

    @dmvvilela

    I hate it.. i prefer + and -.. Didnt exist the need to change that..

  17. lllopo commented on Aug 16, 2019

    @lllopo

    you make your gutter the same color as the code background

    Well actually I do not, VS Code color themes do it.

    To be honest, I've override these in settings, so the themes can't mess with it on my setup.

  18. Batalex commented on Aug 16, 2019

    @Batalex

    This means there is an issue either with the icons or with the color themes ;)

  19. jcklpe commented on Aug 16, 2019

    @jcklpe

    I am personally neutral on whether the folding icons should be +/- or a caret, but I do think it's worth bringing this issue to people's attention: #50359

    While back I proposed that the code folding icons be more contextually placed in the editor. I did a quick mockup here:
    image

    I think there are quite a few ways that code folding could be improved on to improve their presentation, add more visual-semantic content, and clarify things like the hierarchy of given code. Just a thought.

  20. kanlukasz commented on Aug 17, 2019

    @kanlukasz

    While back I proposed that the code folding icons be more contextually placed in the editor. I did a quick mockup here:

    This look is too heavy, too thick lines. In addition, it will mix with the GIT lines in gutter. Bad idea imho.
    By the way, what you have shown in the example is more about Indent Guides match than Code folding

  21. jcklpe commented on Aug 17, 2019

    @jcklpe

    While back I proposed that the code folding icons be more contextually placed in the editor. I did a quick mockup here:

    This look is too heavy, too thick lines. In addition, it will mix with the GIT lines in gutter. Bad idea imho.
    By the way, what you have shown in the example is more about Indent Guides match than Code folding

    The mockup is not a final treatment for styling. It's just a copy paste move around of a screenshot that took me less than a minute to get across the idea of nesting. Some of the styling you're seeing, such as the thick yellow line or the pink highlighting isn't even part of the functionality I'm proposing, it's just other extensions that I happen to have installed on my personal version of vscode.

    And yes the location of the code folding buttons is related to the indent guides but the point of the mockup is to show how the code folding buttons are placed contextual to their indent guides rather than in the gutter.

  22. jcklpe commented on Aug 17, 2019

    @jcklpe

    Here's a neatened up version using the current chevron look and using a vanilla factory default styled version of vscode.

    sketch
    and with some code folded to show how it would look different.
    sketch2

    Even this is not meant to give some kind of final proposal on what this thing should look like. In my opinion what needs to be done is for the the code folding styling to be opened up for people to change how they want. You'll never reach a consensus on chevron versus +/- because fundamentally there isn't a "right" answer for that stuff, it's purely a personal preference. The fact that there's a proposed alternative styling like what I propose above I think is a good addition to the argument that there should be more options for code folding.

  23. ErikHumphrey commented on Aug 18, 2019

    @ErikHumphrey

    I don't think that style would solve the problem,if there's HTML that happens to be the same colour as the chevron. It's more of an issue of how it looks when closed.

  24. QinBa commented on Sep 28, 2019

    @QinBa

    Of course, people have different tastes. And I personally prefer +/- over >. However, is it really so difficult to provide both as options for users to choose? Strange ...

  25. jcklpe commented on Sep 28, 2019

    @jcklpe

    I don't think that style would solve the problem,if there's HTML that happens to be the same colour as the chevron. It's more of an issue of how it looks when closed.

    The colors for the chevron were chosen by me when I made the mockup. I made them match elements of the CSS syntax highlighting for the purposes of visual cohesiveness but if this kind of system were implemented it should obviously have [theme token APIs] exposed to make it customizable, similar to how layering of color in brackets it's determined by setting in Bracket Pair Colorizer.

    Of course, people have different tastes. And I personally prefer +/- over >. However, is it really so difficult to provide both as options for users to choose? Strange ...

    I agree, I think it would be best to have both. I imagine the main MS devs are not prioritizing giving users the option to choose that due to their interest or prioritization of other features in vscode. This is an open source project so if you want you can always attempt to make those changes yourself too! Maybe an extension would be a good way to start.

    I should probably myself just build an extension to do the layered code folding the way I've suggested but I haven't because I'm not actually that good of a dev (I'm really more a designer who knows enough code to get themselves in trouble and annoy people on stack exchange lol). Maybe someday though!

  26. miguelsolorio commented on Oct 7, 2019

    @miguelsolorio
    Contributor

    Thanks everyone for the feedback. I think this icon issue falls under #79130 which will allow you to configure the icons to your own liking, so please upvote that issue. In trying to keep our issue count on a manageable level, I'm going to close this as a duplicate. If you have any additional comments please leave them in that issue. Thanks!

  27. added
    *duplicate
    on Oct 7, 2019
  28. locked and limited conversation to collaborators on Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateicons-product

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions