No-break space causing problems in Xcode

后端 未结 3 1942
野的像风
野的像风 2021-01-11 21:13

Quite often when I code in Xcode, I type no-break space (Option + Space / Option + Shift + Space) especially before or after square brackets or curly braces. This causes Xco

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-11 22:04

    I also had that problem (xCode 7.2) and found a workaround by assigning Option+Space and Option+Shift+Space to "Make Text Writing Direction Left ToRight" in Xcode

    • Preferences (menu)
    • Key Bindings(section)
    • Default(drop down)
    • Text(tab)
    • Writing Direction(section)
    • Make Text Writing Direction Left ToRight(command)
    • Double-click and use (+) on the right to add key bindings.

    You could assign them to any other command that doesn't have a useful effect for you.

    It will make it seem that the space bar is not responding when you accidentally hold the modifier keys but that's much less of a time waster than the compilation errors.

提交回复
热议问题