Android studio code editor occur unreadable code unexpected - android-studio

As shown in the figure, when I typing dot to prompt the code, it show messy code. Anyone know what happend?

I change font resolve my problem

Related

Why does the syntax color code of Visual Studio Code act weird on me?

I am using Visual Studio Code 2022:
Information on my VS code version
Up until now, I have had the colors appearing correctly in the default theme of VS code Dark+ (default dark).
I am currently using it for unity, so for C#, but sometimes use it for HTML CSS.
Those are the extensions that I have currently installed:
List of Extensions
I just noticed recently that right after clicking on a different .CS file, the color code doesn't work anymore. I can't figure out why, but it's super annoying. Classes used to be green, and their names used to be blue. Now, they are All blue.
Here is what it looks like when things are working fine:
Working Fine
And this is what it looks like as soon as I click on another .CS file in the file explorer:
Not Working
The only way to get my colors back, is to close VS code and re-open it.. but it's useless because I am eventually going to select a different .CS file in the explorer, and the problem arises again.
I have been coding for only 4 months, so forgive me if this is actually something simple, but I could not find the exact same issue somewhere else.
Thank you!

How can I color the output in Logcat or Run in Android Studio?

Wanting to make some output in Logcat or Run more visible, I would like to color it.
But nothing worked, that I found on stackoverflow,
not the ANSI escape codes and
not even System.err.println("Color")!
(See e.g. this question)
Finally I tried: Log.e(TAG, "eeeee") // (TAG needs to be a String)
That worked! It was red.
(Note: Maybe try-catch blocks remove colors.)
But I would like to use more colors, too. Does anyone know how to do it?
Maybe the ANSI escape codes can be used, too. But how?
Looking forward to the answers!
Finally I got more color into my output!
The answers to this question gave me an idea, but did not solve the problem.
In the Preferences... of Android Studio the colors can be changed in Android Logcat. The problem was, that most color values were inherited from the standard output. This needs to be unchecked. Then the colors can be freely changed. And it works!
Now I can use Log.i(...), Log.v(...), Log.w(...), Log.d(...), Log.e(...) in the Java code to get different colors in the output.

All of a sudden, my text editor in Visual Studio is all sorts of crazy colors

This happened all of a sudden - I have no idea what triggered it. But, when I opened up a Visual Studio solution, here's what I get:
The text in blue and red aren't usually those colors, and the weird white border on the selected row isn't usually a border like this. As you can see, it's kind of hard to read. I can't recall exactly what colors they were, but they weren't these. I went to the following and chose "Use Defaults", but that didn't do anything:
Any ideas on how to fix this?
An extension that you have recently installed might have caused this unexpected behaviour. Even seemingly unrelated extensions can sometimes do weird things.
If you've installed multiple extensions and don't know which one is the problem, try disabling them one by one and see if you can deduce which one is being problematic.

Where is the warnings screen option in Android Studio?

I want to see warnings of my code in Android Studio, But i am unable to find the option to display warnings view. In case of eclipse we can see the warnings in the "Problems" view.
Can anyone suggest me, how to view warnings in android studio?
If, on the toolbar, you click Analyze -> Inspect Code; then in the window that pops up select how much of your project you want to inspect (I usually do Whole Project, but you might want to select a specific module), then click okay.
Android Studio will work for a bit, then the inspection window will pop up from the bottom with a list of results, subdivided by inspection.
Build -> Make Project (Ctrl + F9) gives what we can get equivalent of Eclipse's “Problems” view on Android Studio
you can use F2 to next problems, see more here: Navigating to Next/Previous Error
GO to View-->Tool Windows-->Messages to view the warnings
Even i searched all the settings in Android Studio, but couldn't find a separate window for it.
The warnings are actually visible to the right end of a particular line as a small yellow marker and clicking on that show the warnings in the status bar below. The colors of them can be editted in the inspection options.
Hope this helps you.
The closest thing Android Studio/IntelliJ has to the Problems view in Eclipse is to use the Problems section of the Project tool window. With that open, navigate down to any classes that appear there and open them in the editor. Once in the editor, you can use F2 to jump between errors in the open file.
Unfortunately, IntelliJ's Problems tool window shows classes with errors nested by folder/package, so you have to expand several levels and it takes up a lot of screen real estate to see even one error. It also doesn't list the errors individually, forcing you to first open the problematic file and then use F2 to navigate to each one. I also had the problem that errors in files that weren't open, didn't show up there.
[opening warning screen in android studio
Click the warning icon as marked in the image.
Warning screen will open.
][click to see image] here

Dreamweaver CS5 code hinting

I've been programming in Xcode a lot and the code hinting/autocompletion is amazing. Now Im working with CS5 and it's a pain to need to hit Crtl+Space every single time for code completion. Every time i type a letter, instead of autocompletion, dreamweaver saids "There is a syntax error on line ... Code hitting may not work until you fix this".
So is there anyway to have code hinting enable right when you type a letter or at least have error checking be less aggressive? Thank you so much!
Unfortunately, you don't get a ton of control over Dreamweaver's code hinting and syntax checking.
The code hinting can be enabled or disabled and also given a delay before appearing at Edit | Preferences | Code Hinting.
The Syntax Error in the header can be disabled in Split View or Code View from the Coding Toolbar. Look for the icon that has the triangular yellow background with an exclamation point and toggle it. When you have invalid syntax you'll still get red coloring on the line numbers (or left margin if you disable the line numbers) but that's about it.
Firstly Go to Edit Preference (Ctrl+U) After that see the screenshot

Resources