Intellij plugin that provide intention action for empty constructor or function to fill property with default value. Inspired by Go fillstruct
This plugin add intention action for invalid constructor or function expression.
Install from jetbrains plugins repository. https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class
- Fill default parameter for non primitive type. Currently this plugin dose not support class like below.
data class Address(zipCode: String)
data class User(
val name: String,
val age: Int,
val address: Address // Currently this plugin fills empty value for this parameter
)
- Fill parameters for non primary constructor. Currently this plugin only fill parameters for primary constructor.
- @t-kameyama Fill function call arguments #17
- @shiraji Convert to intention & Support non-empty constructor #6
- @Pluu @naofumi-fujii fix #2 Double type fill error #3