Xcode keep changing editor while I type code

Hi fellow developers.

Starting less than a year ago, probably a couple of months ago, Xcode started to take initiatives while I type my code.

I haven't identified yet what makes Xcode open new editor while I type some code and I don't understand its logic. This behaviors makes me create a lots of error since the insertion cursor suddenly change file and it annoys me a lot.

This question probably have already been asked before but I haven't found my answer :
  • Which triggers is Xcode looking for in my code ? (seems to be related to parenthesis ou brackets but I'm not sure)

  • How to stop Xcode from opening new editor while I type code ?

  • Do you find this feature useful ?

I would like to understand it better and I would like to know if I could get some benefice from it or if I should disable it...

Thank you for your time,

Regards,
Jean-Baptiste.

Did you check the Xcode shortcuts ? May be there is one associated to some char inadvertently set to open new editor.
Hi,

Thank you for your suggestion.

Actually, there is this shortcut "Ctrl + Cmd + T" that is a shortcut close to the one you'd use to make an opening bracket... and which produces almost exactly what drives me crazy... It opens another editor aside from the one I'm using. Except this new editor displays the file I was editing whereas the behavior of Xcode that I don't want seems to open a new editor with another file somehow related to what I was writing...

I would say that I think that there is 50% chances that your suggestion is the good one and I'm definitely gonna keep in mind ;) But also 50% chances that it is something totally unrelated to keyboard shortcuts.

I've read about "Assistant editor" and I didn't quite understood well what's all about and I'm suspecting my probleme could be related to that...

Any other ideas guys ?

Hello

Well, nope, it's not related to the keyboard combination I use to create parenthesis or brackets or whatsoever...

Clearly, it happens when I type a " { " (as ordinary as possible) and what it does, it splits my editor in half and open in the right half another file that Xcode thinks somehow that should help me to what I was doing... But actually, it's more a source of error and a perturbation for me.

Anyone knows how to disable this very annoying feature in Xcode ?


I never noticed this behaviour.

I would suggest to remove the suspicious short cut to see what happens.
Heu, ok... but what are those suspicious shortcuts ?

I've never dare to customize Xcode shortcuts, precisely to avoid what we're talking now. I don't know where to start looking (well, I know where shortcuts (also known as keybindings) are defined in Xcode's preference pane ; but apart that, there are so many !... What should I look for ?

So I was typing some code and I was writing :

if sca.eBoundingBox == .eSelectedHarmonic {

Then, right after I wrote the { , Xcode splitted my editor to open in the right pane (the new editor) the last file I had opened a couples of seconds before.

It has nothing related to my key bindings. I really thinks it's a behavior that can be configured in Xcode preferences but I don't know which one...

Please, it really slow down my coding and bug my life. I need help on this. I can't possibly be the only one with that nasty behavior !
Xcode keep changing editor while I type code
 
 
Q