天哪,IntelliJ的默认 colored颜色 高亮显示令人眼花缭乱.我怎样才能改变这个?

在此处输入图像描述

推荐答案

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.

你想要的东西是Property with backing field.但是请注意,我发现KT-6765是一个错误,除非你也设置了背景色,否则前景色是不受尊重的.因此,要更改它,请确保同时设置了前景色和背景色,如下所示:

在此处输入图像描述

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

Kotlin相关问答推荐

Jetpack Compose Material3和Material2 Slider onValueChangeFinded()的行为不同

"Kotlin中的表达式

Kotlin扩展函数未调用Hibernate/JPA中的重写函数

房间数据库操作中的协程取消

kotest 更改环境变量

Kotlin 插件之间的区别

KMM:编译失败:意外的 IrType 类型:KIND_NOT_SET

使用 Kotlin 协程时 Room dao 类出错

从 Java 调用 Kotlin 高阶函数

无法删除部分子项.这可能是因为进程打开了文件或将其工作目录设置在目标目录中

是否可以在 kotlin 中嵌套数据类?

Kotlin内联扩展属性

有没有办法在数据类构建时转换属性的值?

Spring Boot:更改属性占位符符号

Kotlin:如何从另一个类访问字段?

使用主构造函数时使用Kotlin getter/setter

内联 onFocusChange kotlin

我应该使用Kotlin数据类作为JPA实体吗?

Kotlin - 如果不为空,则使用修改后的 Obj props 覆盖 Obj props

Kotlin for assertThat(foo, instanceOf(Bar.class))