Autocompletion in string interpolation

When using string interpoloation, Xcode doesn't autocomplete variables unless the interpolation parenthesis and string are fully closed.


let myInt = 5
print("My int is \(/*no auto complete here*/)

print("My int is \()")  // then I can go back into \() and autocomplete works


This is somewhat frustrating and seemingly would be a very useful feature to have. I was wondering if there's an option I'm missing to enable that.

Replies

But the following works:


print("My int is", my          // Autocompletion works here


I do not see the reason why it does not work with interpolation.


Note: that seem to be an old bug:

h ttp://openradar.appspot.com/17117907

or

https://stackoverflow.com/questions/25823561/swift-not-getting-the-suggestion-for-the-variable-name-in-println


You could file yet another bug report, not sure that will be very successful.