In Xcode (swift file), I'm facing an issue where automatic insertion of closing brace is not working anymore.
Ex: when I write
func myFunc() {
and hit Enter, Xcode will not insert the closing brace, and I need to do it by myself (and I'm very angry about it...)
Yet, my settings seem to be good: Preferences -> Text Editing tab -> "automatically insert closing braces" == true
It seems to happen for each file containing commented code, especially this (very common) piece of comment : //}
Configuration: Xcode Version 10.0 (10A255)
Steps to reproduce on a new Playground:
//}
func test() {
It definitely seems to be a bug in the text editor. Already filed with Apple bug reporter.
Can everyone reproduce the bug or is it due to some configs ? And if so, what can I do to fix it ?
The problem was fixed by Apple in Xcode 10.1 (10B61)