I had the same problem, and I was able to fix it as follows: Xcode> Preferences> Indentation> Indented Values> Automatically Indented: UNCHECK RETURN field. Submit an expression This worked for me, otherwise it will always position the cursor in the middle of a new line.
source share