Kotlin: Why are most variables underlined in Android Studio and how do I turn that off?

It's just Editor Preferences.

Edit:

This is moved to

Preferences -> Editor -> Colors & Fonts -> Kotlin -> Properties and Variables

enter image description here

Thanks rmirabelle for the comment

For the old plugin, you can go to

Preferences -> Editor -> Colors & Fonts -> Kotlin

Then find Var (mutable variable, parameter or property) and remove Underscored effect.

I guess they just try to discourage using var by adding the annoying underscored. :P

old plugin


In Android Studio 3.1.2 this has been moved to -

Settings > Editor > Color Scheme > Kotlin

enter image description here