Android Studio syntax highlighting issue - android-studio

There is an issue with android studio code colouring and Throwable. After I add Throwable anywhere at class, code colouring and syntax check stop working. You can see that below, I wrote from top to bottom and at each step I wrote what happened between commas. I am using Android Studio 4.1 Cannary 8.
Edit: with java it works normal.

Related

flutter code formatting in vscode like in Android studio

In Android Studio when you have Column of widgets it is very convenient to collapse the code like :
But in VSCode you cannot see the if there is a coma in the end, and even add it in collapsed mode.
Can VSCode be configured to show the closing brace and comma for folded code on the folded line, similar to Android Studio?

How can I add a custom Kotlin postfix completion in IntelliJ IDEA / Android Studio?

It seems I can't add custom postfix completions for Kotlin in neither IntelliJ IDEA (2018.3), nor in Android studio (3.2.1). If I go to preferences | Editor | General | Postfix Completion and I click the add button, there is no option for Kotlin (see screenshots below). Is it possible to add new postfix completions?
I'd like to add a .with postfix completion, so that x.with would expand to
with(x) {
// The caret should go here
}
Side note: I think it's a shame there is no postfix completion for with out of the box.
Screenshots of IntelliJ IDEA (2018.3) and Android Studio (3.2.1):
I checked, and it's not possible in Android Studio nor IntelliJ. Probably the definition language doesn't have support for Kotlin yet.
However, what you could try, is try the following plugin: https://plugins.jetbrains.com/plugin/9862-custom-postfix-templates.
It seems to be well maintained, and has support for Scala, Kotlin, Groovy, etc. I haven't tried it myself, but based on the documentation, it seems to be what you're looking for.

Android Studio 3.1.3 Preview screen blank

im a total newbie to Android Studio. I know the blank Preview screen is a known issue. On another thread a solution was to change something called 'AppCompat'.
The solution given was as follows:
"Change AppCompat library version in Gradle :
From
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
To
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
It Works !"
My question is, where do I find the AppCompat library version so that I can change this 1 line of code?
Many thanks
Fe

Android studio consecutive comments folding

I use code regions in Android Studio this way:
When collapsing all my code, Android Studio used to do this:
But with the latest update (3.1.1), it now does this:
Is there a way to revert to the previous behaviour?
EDIT: yes I've been to Preference > Editor > General > Code folding. I unchecked all the boxes, restarted, the problem is still there.

Android Studio does not perform automatic error detection

I'm using Android Studio 1.1.0 in Mac OS X 10.10. I noticed that when I wrote code like:
public void;
or even:
+ (bad) thisObjectiveCCodeShouleNeverCompileInJava:(ButSomehow *)itsNotComplaining
Android Studio didn't complain. Once I built it, Gradle showed the error, but the editor pane still did not. I attempted to use Navigate > Next Highlighted Error, I got the following balloon over my text cursor:
I let it sit for up to half an hour and still, no errors or warnings were ever highlighted. Similarly, placing the text cursor in/on a variable name does not highlight its usages in the file (but Edit > Find > Highlight Usages in File works fine).
I tried updating to 1.2.x, but I get this:
At one point, when attempting to Make Project, I got the following:
What's going on, and is there any way to fix this without reinstalling Android Studio from scratch?
Most of this is because I had Power Save Mode enabled. Unchecking this re-enabled error highlighting and other such features.

Resources