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

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.
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.
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:
In windows it appears like this in the editor after adding the emoji:

On mac position the cursor in any text field you'd like to insert an
emoji, like posting a tweet for example.
Use the keyboard shortcut Command - Control - Space bar to access
emoji.
Double-click the emoji you'd like to use and it'll be inserted where
you left your cursor.

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!

The code editor now correctly handles Unicode emoji characters. On Mac OS X emoji characters are rendered as colored images. On Windows and Linux emoji are rendered as monochrome characters.
Source: https://blog.jetbrains.com/idea/2016/12/intellij-idea-2017-1-eap-is-open/

Related

Change the font in the Android Studio editor or IntelliJ IDEA

I think the title is already clear enough.
I have been able to change the font for my editor through accessing:
Preferences > Editor > Color Scheme > Font
But happens that some of my fonts are not available there; although a lot of them they are. This happens to me in this machine with the FightingSpirit font. Not that I want to use it but it's one where the issue happens.
At work I have added ligatures to the Menlo font using an open source project and it doesn't show up. I've tried disabling Show only monospaced fonts and although more fonts show up, some of the fonts still are not available.
Is there any fix for this, is it impossible for some fonts or am I doing something wrong?
EDIT
I have been able to set that ligaturized font to some of my editors and terminal, so the font is not corrupted and does work.
After some IDE updates the font showed up so the problem fixed itself

Android Studio not displaying unicode characters

I recently updated my Android Studio to v3.4. Now the unicode characters I had earlier used, is not displayed on the editor screen. I can see them on the app, but not in the code.
Check the screenshot for more idea.
In the strings.xml, layouts anywhere it is not displayed. I tried to change the color scheme, tried with a new profile, none worked.
In android studio, got to file menu.
Click on Invalidate Caches / Restart....
That will show up the strings properly.
Don't forget to upvote.
If you want to see Hindi Unicode
First You Download Poppins Font Download font
Then Open Android Studio
File > Settings > Editor > Font > (Untick) Show only monospaced fonts > Select Font > Poppins Light or Medium > Click OK Button
Result Result
Go to your res/strings.xml and add the following code:
<string name="fgmt_titre_drawer">YourText</string>
Then rebuild your project.

Android Studio where is color picker for Flutter plugin

In Android Studio, we have color picker when developing in Java/Kotlin (natively) like this.
But while developing for Flutter, I can't see any options to pick my own color. Is there some plugin required to do that?
The color picker is not clickable in Android Studio running Flutter( Dart code), see picture below. But i found a work around using the Color class and manually opening color picker. Then pick a color and copy/paste it like this:
Here is how i do it:
1. Double tap shift to run search
2. Type Color or Picker
3. Open Color Picker from the search list
4. Copy/paste the HEX color code into your color class.
Expert tip:
Add color picker to a keyboard shortcut. You can find the settings for Keymap, under File > Settings > Keymap
You must have heard of the materials.io website from google, which provides many materials like designs, icons, tools, resources and components for easy developing. Now Color Tool is also available. You must add the website to your browsers shortcut if you are a developer. Here's the link for chosing color : https://www.material.io/resources/color/#!/?view.left=0&view.right=0&primary.color=E91E63
Another way I found is :
Type 'Colors.' and press control+space to see the available colors.
Select the color using arrow or mouse.
Press control+Q for the quick documentation.
And on the documentation windows, click on the edit button which opens the
'colors.dart' file.
Here all the colors with all shades are available. These shortcuts are for windows.
Once you open the file, you can always come back here to chose the next shade. But will not be the comfortable method like android project.
Hope a easier way to do this will come with the later update.

LiClipse theme: Theme does not apply to strings

I use a particular color theme in the appearance preferences of LiClipse to change the appearance of the text in my editor for my PyDev projects.
I can easily change the color of any type of data that the editor interprets, except for strings. (Perhaps there's more but I have yet to discover them)
I am able in the Preference setting window to set any colors for strings, and I do see it being applied in the preview that the window shows, but when I click Apply, the strings in my code stays plain white. I've tried editing a couple of other data's color, and they all work great.
Following is two screenshots showing the settings window just before pressing "Apply", and my resulting code, in that order.
In the Preferences window, we can see in the preview that the "String" part is colored. Any color works. But then in my editor we can see that it did not apply, but all the other word object colors did.
My guess is that perhaps the strings in the PyDev editor are not interpreted as string, but instead something else.
I'm using LiClipse 4.5.2.201803171104
On Windows 7.
After a couple of trial and errors, I found out that by default, strings in the LiClipse PyDev editor are interpreted as constant.
Therefore, editing the color of constant changes the display colors of strings in the editor.

Android studio terminal bug

I can't see anything when I type in android studio's terminal. I see the cursor blinking and I can select lines till top but when I copy and paste it somewhere no texts are being pasted [what I checked].
There is no problem with any other log windows.IMAGE IMAGE 2
You may have a problem with your font color settings. It seems like in Windows the terminal takes the colors of the Windows console. Check this answer: Android Studio IDE - Terminal Background Text Colors different from Terminal Background Color

Resources