Back to Intellij Community

RemoveSingleExpressionStringTemplate

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/RemoveSingleExpressionStringTemplate.html

2025.3-rc-2209 B
Original Source

Reports single-expression string templates that can be safely removed.

Example:

val x = "Hello"
  val y = "$x"

After the quick-fix is applied:

val x = "Hello"
  val y = x // <== Updated