javaandroid-studiostatic-importandroid-studio-import

How to stop highlights of static import methods/constants in Android Studio?


I am using static imports in Android Studio as:

import static android.opengl.GLES20.*;

But android studio highlighting every static member/constant related to static import in code as.


I've also tried to look for an option in Settings > Editor > Color & Fonts > Java but found nothing about changing color.


Solution

  • As your problem is just the highlighting after you used "add on demand static import" and not for the style in general, the solution is pretty simple:

    Press Escape. Sometimes you may need to press it twice.