如何在代码中添加表情符号? [英] How to add Emoji in code?
本文介绍了如何在代码中添加表情符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在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:
< a href = https://i.stack.imgur.com/7aSK2.png rel = noreferrer>
这篇关于如何在代码中添加表情符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文