Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make the emojis display well in windows android studio code editor view?

How to use emoji in the Android source code in Android studio or IntelliJ in Windows OS? I want to use emojis in the logcat print messages by choosing emojis from the context-sensitive popup. I could not find the right plugin. I need the plugin that is used in the picture below. But don't know how to achieve the same. When I googled I get references to emoji-compat for showing emoji in the android application's soft keyboard dialog. But I want to use emoji in the source code in the comments and logcat only. enter image description here

Update: I thought it is an android studio feature. But it is available as soft touch keyboard in windows 10. "WIN + ;" is the shortcut for launching the same. enter image description here

Now, my next question is how to make the emojis display colorful in windows android studio's code editor and logcat like the way it appears in the Mac. In Mac it appears like this: enter image description here In windows it appears like this in the editor after adding the emoji: enter image description here

like image 978
Sundara Raghavan Avatar asked Dec 07 '18 08:12

Sundara Raghavan


2 Answers

  1. On mac position the cursor in any text field you'd like to insert an emoji, like posting a tweet for example.
    1. Use the keyboard shortcut Command - Control - Space bar to access emoji.
    2. Double-click the emoji you'd like to use and it'll be inserted where you left your cursor.
like image 159
Aashutosh Poudel Avatar answered Sep 23 '22 10:09

Aashutosh Poudel


In your screenshots, the emojis appear to be rendered in a monochrome version in your editor. I've experienced a similar problem with the display of emojis in IntelliJ on macOS.

At first, I thought it was due to a character encoding setting. This turned out to be unrelated as my file encoding is set to UTF-8 everywhere.

After living with the problem for quite some time, the solution I've found to have emojis display right for me is to set the fallback font (for symbols not supported by the main font) to "Apple Color Emoji" for both the editor and the console.

The corresponding UI path for this setting is listed below.

  • Preferences > Editor > Font

When a color scheme font setting overrides the editor font, then the following paths can apply.

  • Preferences > Editor > Color Scheme > Color Scheme Font
  • Preferences > Editor > Color Scheme > Console Font

"Show only monospaced fonts" will need to be disabled temporarily to show the emoji font under "Fallback font".

Additionally, I made "Paste without Formatting" be my default paste option so that emojis can be pasted directly, without risk of being transformed into Unicode escape sequences.

The result is that emojis display as expected for me throughout the IDE, making a big difference to my coding pleasure!

like image 34
Daniel Zhang Avatar answered Sep 23 '22 10:09

Daniel Zhang