IDE : Android Studio 3.3
I am doing kotlin smart casting in RecyclerView adapter on ViewHolder.
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
holder as ViewHolder
Now every mention of viewholder is being highlighted, with text on hover saying "Smart Cast to ..." This is not a problem but really annoying. How can I disable this highlight feature?
In the IDE prefererences, see:
Editor → Color scheme → Kotlin → Smart-casts → Smart-cast value
If you want to disable value smart-cast highlighting, just uncheck Background.
You may want to configure the other kinds of smart-casts, too.
go to File -> Settings -> Editor -> Color Scheme -> Java/Kotlin -> Classes and Interfaces
You should be able to find color scheme for classes here. Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With