How to disable auto removing Kotlin unused variables?

Answered

Hi,

Whenever the formatter runs it automatically removes variables that are unused, the entire line. I use format on save with auto-save enabled, so this is very annoying behavior when it removes before I write code to use the variable. 

I am using IDEA 2025.1 Beta

0
1 comment
Does it help by unchecking "Unused variable" under Kotlin from "File | Settings | Editor | Inspections"?
0

Please sign in to leave a comment.