How to add Emoji in code?

十年热恋 提交于 2020-01-22 08:52:10

问题


In Xcode, I've previously gone to Editor > Emoji & Symbols, found some Emoji, double clicked it and had it appear in my code where the cursor is.

I'm trying to do that now and nothing is happening. I can't find any way to get the Emoji into Xcode.

Does anyone have some suggestion?


回答1:


This solution is for Mac OS (Mavericks and up) and not only Xcode:

Cmd+Ctrl+Space

Will bring this menu, where you can simply click on the one you want:




回答2:


Open Xcode -> Edit Menu -> Choose

Then Emoji appears , Here is snapshot :

Note : - Xcode 7.2.1

Hope it Helps. Thanks



来源:https://stackoverflow.com/questions/36846897/how-to-add-emoji-in-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!