VoiceOver shortcuts in xCode

By niteblind, 20 August, 2016

Forum
macOS and Mac Apps

Hi All,

My first time here but can I first off say a big thank you to AppleVis.

I am severely sight impaired and a VoiceOver user, so this is the first time I have EVER signed up to a forum/site and found the registration process so painless! I actually managed the, "are you a human" test on my own without needing my sighted wife to do it for me. Other sites could certainly learn a thing or two from you guys!

Anyway on to the reason I stumbled across your site in the first place...

I use Xcode not only for Apple apps, but for development in other code languages. I am currently having to edit a colleague's code and to make things easier I am creating a functions log as a comment at the start of the file.

In order to do this I need to know which line the code starts on for a particular function, however, although I know line numbers are presented on the screen in Xcode, is there a VoiceOver shortcut which would read aloud the line number which the cursor is currently on?

I have tried searching for this on Google etc, however, the search results are all about how to show line numbers, not read them aloud using VO.

Any ideas/help would be appreciated.

Cheers,
niteblind.

Options

Comments

By mehgcap on Wednesday, August 24, 2016 - 02:27

Sorry, but my only thought is to use the 'jump to line' command, cmd-option-l I believe. When it opens, it should show the current line number, unless that's changed. I just had a look in Xcode's scripting dictionary, but I didn't see a way to get the current line number, which is too bad as that would be a very simple script to do exactly what you want. Maybe submit an enhancement request asking Apple to add that to the scripting options of Xcode?