You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalitymacosIssues with VS Code on MAC/OS X
A verbal indication of the indent level while using the arrow-keys to navigate code is very valuable, especially when indentation is syntactically required such as with YAML or Python.
For example, using the vim editor, I display the indent level using the DynamicSigns plugin. I also navigate to lines of lesser, equal, or
greater indent using the IndentWise plugin.
Ivan Fetch (@ivanfetch) thanks a lot for providing this valuable feedback. Would you expect that
indentation is always read out as you navigate the document? This has the downside of potentially being too spammy to the user. How to determine a good time to read the indentation?
There is an explicit command that reads out the indentation once a user triggers it? A user could easily add a shortcut to this command.
Ivan Fetch (@ivanfetch) thanks a lot for providing this valuable feedback. Would you expect that
indentation is always read out as you navigate the document? This has the downside of potentially being too spammy to the user. How to determine a good time to read the indentation?
I think this being a toggled feature (with hotkey) provides the most flexibility. There are cases where I want to know the indent level of every line as I navigate a file, but I wouldn't want that 100% of the time.
There is an explicit command that reads out the indentation once a user triggers it? A user could easily add a shortcut to this command.
A hotkey that reads the indent level of the current line, but does not toggle the "always on" feature would be a nice addition. This would exist along with the above option (to have indent level always spoken)
I have not tried this, but the VS Code VIM Emulator appears to use emulated plugins. I think an indent feature directly in VS Code is more strait forward.
Thanks. Yeah I think that makes sense. A toggle to always read indentation. Once we have that we can look into introducing the other command to only read the current line ident.
Let's assign to next milestone and we can look into adding this feature.
We don't support such plugin in the Vim extension but it makes sense to have this feature in the core and keymap extensions can benefit from it directly.
That’s not a VO setting. Show invisibles is an app specific setting (e.g. Word and several other apps have it) that renders invisible characters visibly. For example, the white space tab characters are rendered as char icons representing Tab.
Activities is a VO feature that allows a user to change a setting or setting in the context of an app or web site.
For example, make a new Code activity in VoiceOver Utility, and change the setting to pronounce all punctuation. Associate that activity with vscode (so it switches automatically) or select it with the activity chooser (VO+x).
You can also set up Speech replacements for an Activity. I haven’t tried it with white space, but if the app renders Tab characters properly to the AX API, you should be able to replace these in the speech output by replacing the Tab character with something pronounceable like the word “tab.”
Note: I haven’t tried white space replacements, so if that doesn’t work for you in vscode, let me know and I’ll look into it further.
You can also do replacements like two tabs with "indentation level 2", three tabs with "indentation level 3" or such I believe, make tab-indented files read really nicely. Now if we could only have punctuation spoken only in the editor, not in the settings or other parts. :-) But VO activities don't allow for that granularity yet I think.
VS Code actually already has a setting editor.renderWhitespace which by default is selection so we would only render whitespace when the whitespace is selected. We should change our Screen Reader behavior such that when editor.renderWhitespace is set to "all" we would also read the whitespace characters as they are seen in the editor.
The character which we currently use for representing a single space is a • (bullet). And for a tab we use ⭢ right arrow.
Does it make sense that for having three whitespaces that we read "bullet bullet bullet", or for 4 tabs we would read "right arrow right arrow right arrow right arrow". This sounds very spammy to me.
Hi,
Screen readers usually only read indentation when it changes as you move up and down. Also, if VoiceOver is set to read all punctuation, it reads tab characters in apps other than VS Code. I have not tried VS Code on Mac yet. I'll get Insider on my Mac and see what I can find out.
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalitymacosIssues with VS Code on MAC/OS X
Activity
isidorn commentedon Jan 20, 2020
Ivan Fetch (@ivanfetch) thanks a lot for providing this valuable feedback. Would you expect that
Let me know what you think.
As for Vim, vscode also has a vim plugin https://marketplace.visualstudio.com/items?itemName=vscodevim.vim
However I am not sure if the vscode vim plugin supports extension you are using. Pine (@octref) and Peng Lyu (@rebornix) would be better to answer this one (as I do not use VIM).
ivanfetch commentedon Jan 24, 2020
I think this being a toggled feature (with hotkey) provides the most flexibility. There are cases where I want to know the indent level of every line as I navigate a file, but I wouldn't want that 100% of the time.
A hotkey that reads the indent level of the current line, but does not toggle the "always on" feature would be a nice addition. This would exist along with the above option (to have indent level always spoken)
I have not tried this, but the VS Code VIM Emulator appears to use emulated plugins. I think an indent feature directly in VS Code is more strait forward.
isidorn commentedon Jan 24, 2020
Thanks. Yeah I think that makes sense. A toggle to always read indentation. Once we have that we can look into introducing the other command to only read the current line ident.
Let's assign to next milestone and we can look into adding this feature.
rebornix commentedon Jan 27, 2020
We don't support such plugin in the Vim extension but it makes sense to have this feature in the core and keymap extensions can benefit from it directly.
11 remaining items
cookiecrook commentedon Mar 30, 2020
That’s not a VO setting. Show invisibles is an app specific setting (e.g. Word and several other apps have it) that renders invisible characters visibly. For example, the white space tab characters are rendered as char icons representing Tab.
cookiecrook commentedon Mar 30, 2020
Activities is a VO feature that allows a user to change a setting or setting in the context of an app or web site.
For example, make a new Code activity in VoiceOver Utility, and change the setting to pronounce all punctuation. Associate that activity with vscode (so it switches automatically) or select it with the activity chooser (VO+x).
You can also set up Speech replacements for an Activity. I haven’t tried it with white space, but if the app renders Tab characters properly to the AX API, you should be able to replace these in the speech output by replacing the Tab character with something pronounceable like the word “tab.”
Note: I haven’t tried white space replacements, so if that doesn’t work for you in vscode, let me know and I’ll look into it further.
MarcoZehe commentedon Mar 30, 2020
You can also do replacements like two tabs with "indentation level 2", three tabs with "indentation level 3" or such I believe, make tab-indented files read really nicely. Now if we could only have punctuation spoken only in the editor, not in the settings or other parts. :-) But VO activities don't allow for that granularity yet I think.
isidorn commentedon Mar 30, 2020
Thanks a lot for feedback.
VS Code actually already has a setting
editor.renderWhitespacewhich by default is selection so we would only render whitespace when the whitespace is selected. We should change our Screen Reader behavior such that wheneditor.renderWhitespaceis set to "all" we would also read the whitespace characters as they are seen in the editor.The character which we currently use for representing a single space is a • (bullet). And for a tab we use ⭢ right arrow.
Does it make sense that for having three whitespaces that we read "bullet bullet bullet", or for 4 tabs we would read "right arrow right arrow right arrow right arrow". This sounds very spammy to me.
fyi Alexandru Dima (@alexdima) on ideas
jhomme commentedon Jul 2, 2020
Hi,
Screen readers usually only read indentation when it changes as you move up and down. Also, if VoiceOver is set to read all punctuation, it reads tab characters in apps other than VS Code. I have not tried VS Code on Mac yet. I'll get Insider on my Mac and see what I can find out.
isidorn commentedon Oct 31, 2022
I heard that this has arrived with the new VoiceOver with macOS Monterey. If that is not the case do let me know so I reopen this issue.
jhomme commentedon Oct 31, 2022