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
1 条评论
排序方式
日期
投票数
Does it help by unchecking "Unused variable" under Kotlin from "File | Settings | Editor | Inspections"?
请先登录再写评论。