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
1 comment
Sort by
Date
Votes
Does it help by unchecking "Unused variable" under Kotlin from "File | Settings | Editor | Inspections"?
Please sign in to leave a comment.