Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Kotlin's 'this property has a backing field' code editor highlight in IntelliJ?

My goodness, this default color highlighting for IntelliJ is blinding. How can I change this?

enter image description here

like image 355
ZakTaccardi Avatar asked Mar 09 '15 15:03

ZakTaccardi


1 Answers

You modify the Kotlin colour highlighting the same way you do for any other syntax highlighting. You'll find it under Preferences > Colors & Fonts > Kotlin.

The item you want is Property with backing field. Note however that KT-6765 is a bug I found where the foreground colour is not respected unless you also set a background colour. Therefore, to change it, make sure you set both a foreground and a background colour as shown below:

enter image description here

Personally I opted for a dark background that roughly approximated the Darcula default background.

like image 75
Greg Kopff Avatar answered Oct 07 '22 00:10

Greg Kopff