Code placeholders steal Tab keypresses

Originator:corrmage
Number:rdar://34885732 Date Originated:09-Oct-2017 05:01 PM
Status:Open Resolved:
Product:Developer Tools Product Version:9.1 beta (9B37)
Classification:UI/Usability Reproducible:Always
 
Summary:
When you have a code with placeholders Tab key is used to navigate placeholders. That’s fine. Although if I want to increase indentation of another line of code, placeholders steal Tab keypresses and indentation is not increased.

Steps to Reproduce:
1. Open .m source file in Xcode
2. Create a new method body or go to existing one
3. Use some snippet to generate some code with placeholders. dispatch_after is just fine.
4. Go to any line not affected by code generated in 3.
5. Press Tab.

Expected Results:
Indentation of the respective line increases.

Actual Results:
Cursor jumps to the first placeholder of the code generated in 3. This didn’t happen before Xcode 9, probably a regression introduced by the new code editor.

Version:
9.1 beta (9B37)

Notes:

Comments

This has happened on all versions of Xcode I remember. It has always been extremely annoying, since I may want to fix the indentation of the just inserted code. I usually have to tab through all of the placeholders and enter either the simple value or delete them, then correct whitespace, then go back to entering code.


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!