我有以下字符串:
\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40 good **** go౦ԁ ****\uD83D\uDC4C thats \u2714 some good\uD83D\uDC4C\uD83D\uDC4C****right\uD83D\uDC4C\uD83D\uDC4Cthere\uD83D\uDC4C\uD83D\uDC4C\uD83D\uDC4C right\u2714there \u2714\u2714if i do ƽaү so my self \uD83D\uDCAF i say so \uD83D\uDCAF thats what im talking about right there right there (chorus: ʳᶦᵍʰᵗ ᵗʰᵉʳᵉ) mMMMM\u13B7М\uD83D\uDCAF \uD83D\uDC4C\uD83D\uDC4C \uD83D\uDC4CНO0ОଠOOOOOОଠଠOooo\u1D52\u1D52\u1D52\u1D52\u1D52\u1D52\u1D52\u1D52\u1D52\uD83D\uDC4C \uD83D\uDC4C\uD83D\uDC4C \uD83D\uDC4C \uD83D\uDCAF \uD83D\uDC4C \uD83D\uDC40 \ UD83D\UDC40\UD83D\UDC40\UD83D\UDC4C\UD83D\UDC4CGOOD SH
(替换一些脏话)。
我希望能够在代码中使用此字符串。问题是,当我像这样将此字符串粘贴到程序中时:
String s = "<THE STRING>"
android studio会在每个斜线前自动添加斜线。这可以防止任何字符加载到它们各自的emojjis中,而将它们保留为它们的文本值。
如何防止android studio在粘贴字符串时自动添加斜杠?
最佳答案
使用按键命令将其粘贴到ctrl + alt + shift + v
关于android - Android Studio会自动在我不需要的字符串中添加斜杠,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36804158/