Xcode 6 Editor and Escape Key

Xcode 6 shows very annoying behavior on the control key: pressing this key inserts an ESC char code (0x1B) at the carriage position instead of canceling dialogs, etc. (which is especially annulled with auto-completion and also in the search bar). Since this symbol is invisible, you'll get a syntax error for what looks like absolutely perfect code, and you don't know why:

enter image description here

By turning on Editor -> Show Invisibles, you can see why:

enter image description here

if you come to the conclusion that you can hide something.

Does anyone know how to fix this behavior? Confirmation that others are seeing the same effect? If not, it might be something with my installation (plugins?).

+3


source to share


1 answer


If anyone else stumbles upon this in the future, I ran into the same problem and found a solution.

In my case, the default key binding for the escape key (Cancel) was lost, and I think this is what normally holds the key press to insert the actual ESC character. Unbinding keys for Cancel to ESC solved it.



(I found out by looking at the keybindings in the preferences panel and showing only the ones that were configured. Undo was listed, although I could never remember changing it, not sure if that was what I had done or caused by an error somewhere).

+7


source







All Articles