A key combination inserts invisible and festy character in Xcode Xcode inserts an invisible character whenever I press Ctrl+X, Ctrl+S (was trying to save the code but then realised that I am not using Emacs and should use command+S instead, and went back to delete the festy character.) Deleting something that is invisible is not fun, so.

Is there a way I can disable this "feature"? And by that I mean make Xcode stop inserting the character and essentially does nothing when I press the key combination. I am not looking for a full Emacs key binding setting for Xcode.
I don't think this is possible in Xcode.

This happens because ctrl+x indicates to Xcode that you want to type one of the ASCII control characters. The next thing you type tells it which one. Pressing ctrl+s inserts an ASCII 19, "device control 3". Different letters insert different control characters-- see the chart at that link for a full list. Control characters are not printable, so it's invisible. Unfortunately Xcode's option to show invisibles (Edit menu --> Invisibles) doesn't show ASCII control characters, so you end up with something Xcode doesn't like but that you can't see.

You might be able to use Karabiner to deal with this, I'm not sure though.