Stupid question: how are you supposed to type text in Xcode and get the result you expect?
Example 1:
Let's say I have the following line of code:
[someDictionary objectForKey:@"myKey"];
I want to switch to "someDictionary[myKey"];" so:
1. I delete the first '[' -> it works.
2. I select " objectForKey:" and press the '[' key.
I get:
someDictionary[ objectForKey:]@"myKey"];
Sigh.
Example 2:
I have the following lines of code:
if (something==anotherthing)
{
doSomething();
}
I want to remove the {} so:
1. I select "{
" and press the tab key.
I get:
if (something==anotherthing)
{
doSomething();
}
Sigh.
It's as if the Xcode text editor had been replaced with the Dev Forum text editor.
Question:
How are you supposed to type text in Xcode and get the result you expect?
I checked the Text Editing > Editing options, tried to disabled a few of them that could be connected to this issue but it didn't solve these 2 annoying issues.
Xcode 11.0 or 11.1.