Code Highlighting in IDEA

I’m not sure if I’ve just managed to miss this option somewhere, or if the feature just isn’t available at this time, but for the smart casting operator in Kotlin I can alter the colouring of “?.” However “!!” and “!!.” Do not seem to be affected by it.

As you can see the “?.” is using my custom colour, however “!!.” isn’t, it is possible to have all of these coloured? I’d ideally like the “?” on variable definitions to be configurable as well so that it’s all easily distinugishable.


At this time there is no support for configuring the highlighting of either the !! operator or the ? token in type declarations. I’ve filed a feature request for this to be added.

Awesome, thanks very much for the help