How to disable auto removing Kotlin unused variables?

已回答

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
Does it help by unchecking "Unused variable" under Kotlin from "File | Settings | Editor | Inspections"?
0

请先登录再写评论。