xcode9b2 - would like control-I to skip over white space and position cursor before first-non-whitespace on the line

Originator:markd
Number:rdar://33061746 Date Originated:6/29/2017
Status:Open Resolved:
Product:Developer Tools Product Version:Version 9.0 beta 2 (9M137d)
Classification:UI/Usability Reproducible:Always
 
Summary:
Hi!

In Xcode8 I could press the indent keystroke (control-I) to skip over any leading whitespace of a line (such as indentation) and have the cursor positioned before the first non-whitespace.  This is very handy for adding an assignment to the front of a function, without having to click or manually keystroke over the indentation.

In Xcode9, the cursor stays put when I do that.  It'd be nice to have the Xcode8 behavior.

Please see video https://www.dropbox.com/s/[redacted]/command-i-skipping-whitespace.mp4?dl=0  in dropbox for Xcode9's behavior, followed by the behavior I like in Xcode8.  Other editors (such as emacs) also have this skipping-whitespace behavior).  It's a very nice efficiency shortcut.

Steps to Reproduce:
Have a line of text with leading indentation:

```
    override func viewDidLoad() {
        super.viewDidLoad()
        updateUI()
|       classRider.musicPlayer.currentSongAlbumArtDeferred()
    }
```

(the pipe shows the insertion point)

Type control-I

Expected Results:
```
    override func viewDidLoad() {
        super.viewDidLoad()
        updateUI()
        |classRider.musicPlayer.currentSongAlbumArtDeferred()
    }
```

Observed Results:
```
    override func viewDidLoad() {
        super.viewDidLoad()
        updateUI()
|        classRider.musicPlayer.currentSongAlbumArtDeferred()
    }
```

Version:
Version 9.0 beta 2 (9M137d)
10.12.5 (16F73)

Notes:


Configuration:
Xcode8 has the behavior I like

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!