如何在代码中添加表情符号?
问题描述:
在Xcode中,我以前去过Editor> Emoji&符号,找到一些表情符号,双击它并使其出现在我的代码中,光标所在的位置。
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.
我现在正在尝试执行此操作,但没有任何反应。我找不到将表情符号导入Xcode的任何方法。
I'm trying to do that now and nothing is happening. I can't find any way to get the Emoji into Xcode.
有人建议吗?
答
此解决方案适用于Mac OS(Mavericks及更高版本),而不仅仅是Xcode:
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: