Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code folding #121967

Closed
RichCaloggero opened this issue Apr 22, 2021 · 1 comment
Closed

Code folding #121967

RichCaloggero opened this issue Apr 22, 2021 · 1 comment
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@RichCaloggero
Copy link

RichCaloggero commented Apr 22, 2021

@isidorn

The accessibility docs at https://code.visualstudio.com/docs/editor/accessibility seem to suggest that code folding isn't useful for screen reader users:

Certain features such as folding, minimap (code overview), and word wrap are disabled when in screen reader mode.

IMO, folding can be a great help when trying to read through large amounts of code, especially someone else's code!!

My editor is in screen reader mode and folding commands like control+k control+0 to fold all, and control+k control+j to unfold all seem to work for me.

Only suggestion I have is to somehow indicate that code is folded. I assume sighted users have such indication.

One way would be to use elipses or "...", perhaps a setting to change folding indication to something like:

while (true) {...
}

or even

while (true) {...}

or some way of indicating the start of a fold via live region message when the line at the start / end of the fold is reached.

@isidorn
Copy link
Contributor

isidorn commented Apr 23, 2021

@RichCaloggero thanks for your feedback. Maybe the docs are not 100% precise, we are aware the code folding is useful, however due to limitation we disable it
More details can be found here #43262
So let's close as duplicate and continue the discussion there

@isidorn isidorn closed this as completed Apr 23, 2021
@isidorn isidorn added *duplicate Issue identified as a duplicate of another issue(s) accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues labels Apr 23, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants