Xcode's autocompleted closing bracket should disappear when appropriate
| Originator: | help.you.i.can | ||
| Number: | rdar://14668601 | Date Originated: | 8/6/2013 |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 7.0 b5 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: When typing constructs like "if (something" or "[NSString", the matching closing bracket gets inserted in a gray color and only "fully" inserts itself when stepping over it. I'm not a huge fan of this, especially since it can't be turned off, but it would be great if that closing bracket would disappear again if I delete the text that prompted its insertion. Steps to Reproduce: - Open Xcode, open an Objective-C .m file - Create a method - Within there, start typing: "NSString *str = [NSString" - See how a gray closing bracket "]" gets inserted - Delete "[NSString" Expected Results: - The gray closing bracket should go away automatically Actual Results: - The gray closing bracket stays there Regression: The gray of the bracket suggests that its only a temporary insertion awaiting confirmation. It however never removes itself, which makes me question the reason why it's gray at all. It could be black immediately and the behavior wouldn't change at all. Notes: This has been present since at least Xcode 4. 06-Aug-2013 11:52 PM: Wait, I was wrong, stepwise deletion of "[NSString" does indeed remove the auto-inserted bracket, however highlighting "[NSString" and then deleting it all at once does NOT remove the closing bracket.
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!