To keep code clean across different platforms (and due to a bug where one can't use Unicode escape literals like 😁
in XML files), instead of putting actual "non-normal" Unicode characters like U+1F601 (), I usually use \u
-escaped UTF-16 surrogate pairs like \ud83d\ude01
.
However, when I select and copy String literals containing these escapes from a Java source code file, they are converted to the actual character upon pasting. So when I copy and paste the text
String smile = "\ud83d\ude01";
to another location, it comes out as
String smile = "";
How can I disable this behavior? I didn't find anything in the Settings; or I searched in the wrong place.